Thu, 15 Jan 2015 21:03:48 +0100
Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)
1 /* vim: set ts=2 et sw=2 tw=80: */
2 /* Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/ */
5 "use strict";
7 function test() {
8 waitForExplicitFinish();
9 setup((ed, win) => {
10 ok(ed.isClean(), "default isClean");
11 ok(!ed.canUndo(), "default canUndo");
12 ok(!ed.canRedo(), "default canRedo");
14 ed.setText("Hello, World!");
15 ok(!ed.isClean(), "isClean");
16 ok(ed.canUndo(), "canUndo");
17 ok(!ed.canRedo(), "canRedo");
19 ed.undo();
20 ok(ed.isClean(), "isClean after undo");
21 ok(!ed.canUndo(), "canUndo after undo");
22 ok(ed.canRedo(), "canRedo after undo");
24 ed.setText("What's up?");
25 ed.setClean();
26 ok(ed.isClean(), "isClean after setClean");
27 ok(ed.canUndo(), "canUndo after setClean");
28 ok(!ed.canRedo(), "canRedo after setClean");
30 teardown(ed, win);
31 });
32 }