OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script src=../editing.js></script> | 4 <script src=../editing.js></script> |
5 <script> | 5 <script> |
6 if (window.testRunner) { | 6 if (window.testRunner) { |
7 testRunner.dumpAsText(); | 7 testRunner.dumpAsText(); |
8 testRunner.waitUntilDone(); | 8 testRunner.waitUntilDone(); |
9 } | 9 } |
10 | 10 |
11 function editingTest() { | 11 function editingTest() { |
12 var s = window.getSelection(); | 12 var s = window.getSelection(); |
13 d = document.getElementById("test1"); | 13 d = document.getElementById("test1"); |
14 s.setPosition(d, 0); | 14 s.setPosition(d, 0); |
15 extendSelectionForwardByLineCommand(); | 15 extendSelectionForwardByLineCommand(); |
16 | 16 |
17 test1.innerHTML = "PASS. WebKit didn't crash."; | 17 test1.innerHTML = "PASS. WebKit didn't crash."; |
18 if (window.testRunner) | 18 if (window.testRunner) |
19 testRunner.notifyDone(); | 19 testRunner.notifyDone(); |
20 } | 20 } |
21 </script> | 21 </script> |
22 <pre id="console"></pre> | 22 <pre id="console"></pre> |
23 <div id=test1>(required to cause a crash)<object style='content: counters(c, "."
) "-"; ' type=text/vbs></object></div> | 23 <div id=test1>(required to cause a crash)<object style='content: counters(c, "."
) "-"; ' type=text/vbs></object></div> |
24 <script> | 24 <script> |
25 runEditingTest(); | 25 runEditingTest(); |
26 </script> | 26 </script> |
27 </body> | 27 </body> |
28 </html> | 28 </html> |
OLD | NEW |