aboutsummaryrefslogtreecommitdiff
path: root/contexts/data/lib/closure-library/closure/goog/editor/plugins/undoredostate_test.html
blob: 80ec4ea2eac62d5f13ab826b12b98879845aa815 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
goog.editor.plugins<!DOCTYPE html>
<!--
  All Rights Reserved.

  @author ajp@google.com (Andy Perelson)
-->
<html>
<!--
Copyright 2008 The Closure Library Authors. All Rights Reserved.

Use of this source code is governed by the Apache License, Version 2.0.
See the COPYING file for details.
-->
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Trogedit Unit Tests - goog.editor.plugins.UndoRedoState</title>
<script src="../../base.js"></script>
<script>
  goog.require('goog.testing.jsunit');
  goog.require('goog.editor.plugins.UndoRedoState');
</script>
</head>
<body>

<script>

var asyncState;
var syncState;

function setUp() {
  asyncState = new goog.editor.plugins.UndoRedoState(true);
  syncState = new goog.editor.plugins.UndoRedoState(false);
}

function testIsAsynchronous() {
  assertTrue('Must return true for asynchronous state',
      asyncState.isAsynchronous());
  assertFalse('Must return false for synchronous state',
      syncState.isAsynchronous());
}

</script>
</body>
</html>