upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / 12244.html
1 This is a test for window.find().
2 <br><br>
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.
4 <br><br>
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.
6 <ul id="console"></ul>
7 <script>
8 function log(msg) {
9     var console = document.getElementById("console");
10     var li = document.createElement("li");
11     li.appendChild(document.createTextNode(msg));
12     console.appendChild(li);
13 }
14
15 function assert(expected, actual, error)
16 {
17     if (expected != actual)
18         log("Error: " + error);
19 }
20
21 function runTest() {
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");
24 }
25 if (window.layoutTestController) {
26     window.layoutTestController.dumpEditingCallbacks();
27     window.layoutTestController.dumpAsText();
28 }
29 window.setTimeout(runTest, 100);
30 </script>