1 This is a test for window.find().
3 Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal.
5 Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived and so dedicated, can long endure. We are met on a great battle-field of that war. We have come to dedicate a portion of that field, as a final resting place for those who here gave their lives that that nation might live. It is altogether fitting and proper that we should do this.
9 var console
= document
.getElementById("console");
10 var li
= document
.createElement("li");
11 li
.appendChild(document
.createTextNode(msg
));
12 console
.appendChild(li
);
15 function assert(expected
, actual
, error
)
17 if (expected
!= actual
)
18 log("Error: " + error
);
22 assert(window
.find("now we are"), true, "'now we are' wasn't found");
23 assert(window
.find(), true, "'now we are' wasn't found");
25 if (window
.testRunner
) {
26 window
.testRunner
.dumpEditingCallbacks();
27 window
.testRunner
.dumpAsText();
29 window
.setTimeout(runTest
, 100);