sku-pg
Version:
Skulpt is a Javascript implementation of Python 2.x. Python that runs in your browser!
45 lines (37 loc) • 1.02 kB
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 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>