sku-pg
Version:
Skulpt is a Javascript implementation of Python 2.x. Python that runs in your browser!
44 lines (36 loc) • 959 B
HTML
goog.editor.plugins
<!--
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 an Apache 2.0 License.
See the COPYING file for details.
-->
<head>
<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>