OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body onload="runTest()"> | 3 <body onload="runTest()"> |
4 <script> | 4 <script> |
5 | 5 |
6 if (window.testRunner) | 6 if (window.testRunner) |
7 testRunner.dumpAsText(); | 7 testRunner.dumpAsText(); |
8 | 8 |
9 if (window.internals) | |
10 internals.settings.setUnifiedTextCheckerEnabled(true); | |
11 | |
12 function runTest() { | 9 function runTest() { |
13 document.designMode = "on"; | 10 document.designMode = "on"; |
14 document.open(); | 11 document.open(); |
15 var parent = document.appendChild(document.createElement('iframe')); | 12 var parent = document.appendChild(document.createElement('iframe')); |
16 parent.appendChild(document.createElement('iframe')); | 13 parent.appendChild(document.createElement('iframe')); |
17 parent.focus(); | 14 parent.focus(); |
18 document.execCommand("InsertHorizontalRule"); | 15 document.execCommand("InsertHorizontalRule"); |
19 | 16 |
20 document.open(); | 17 document.open(); |
21 document.writeln('This test ensures WebKit does not crash when replacing conte
nts in a document whose the only content is a nested iframes.<br>PASS.'); | 18 document.writeln('This test ensures WebKit does not crash when replacing conte
nts in a document whose the only content is a nested iframes.<br>PASS.'); |
22 } | 19 } |
23 | 20 |
24 </script> | 21 </script> |
25 </body> | 22 </body> |
26 </html> | 23 </html> |
OLD | NEW |