OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script> | 4 <script> |
5 if (window.testRunner) | 5 if (window.testRunner) |
6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
7 | 7 |
8 function runTest() { | 8 function runTest() { |
9 document.designMode="on"; | 9 document.designMode="on"; |
10 document.open(); | 10 document.open(); |
11 window.getSelection().addRange(document.createRange()); | 11 window.getSelection().addRange(document.createRange()); |
12 document.execCommand("Delete", false, null); | 12 document.execCommand("Delete", false, null); |
13 document.writeln('This test ensures WebKit does not crash when executing Del
ete in an empty document.<br><br>PASS'); | 13 document.body.innerHTML = 'This test ensures WebKit does not crash when exec
uting Delete in an empty document.<br><br>PASS'; |
14 } | 14 } |
15 </script> | 15 </script> |
16 </head> | 16 </head> |
17 <body onload="runTest()"></body> | 17 <body onload="runTest()"></body> |
18 </html> | 18 </html> |
OLD | NEW |