| OLD | NEW |
| 1 <script> | 1 <script> |
| 2 if (window.layoutTestController) | 2 if (window.layoutTestController) |
| 3 layoutTestController.dumpAsText(); | 3 layoutTestController.dumpAsText(); |
| 4 | 4 |
| 5 function runTest() { | 5 function runTest() { |
| 6 window.getSelection().setBaseAndExtent(start, 0, null, 0); | 6 window.getSelection().setBaseAndExtent(start, 0, null, 0); |
| 7 document.execCommand("Indent"); | 7 document.execCommand("Indent"); |
| 8 | 8 |
| 9 document.writeln('execCommand("Indent") was crashing if the top element to b
e formatted is actually not an element.<br>'); | 9 document.writeln('execCommand("Indent") was crashing if the top element to b
e formatted is actually not an element.<br>'); |
| 10 document.writeln('The test has passed if it does not crash.<br><br>') | 10 document.writeln('The test has passed if it does not crash.<br><br>') |
| 11 document.writeln('PASS'); | 11 document.writeln('PASS'); |
| 12 } | 12 } |
| 13 </script> | 13 </script> |
| 14 <body onLoad="runTest();"> | 14 <body onLoad="runTest();"> |
| 15 ><defs contenteditable="true" id="start"> | 15 ><defs contenteditable="true" id="start"> |
| 16 <rt>AAAAAAA0A0AAAA00 | 16 <rt>AAAAAAA0A0AAAA00 |
| OLD | NEW |