| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html> | 2 <html> |
| 3 <body onload="go()"> | 3 <body onload="go()"> |
| 4 Test InsertLineBreak is called correctly without any exception. | 4 Test InsertLineBreak is called correctly without any exception. |
| 5 <script> | 5 <script> |
| 6 function go() { | 6 function go() { |
| 7 document.designMode="on"; | 7 document.designMode="on"; |
| 8 document.write("</"); | 8 document.write("</"); |
| 9 document.getSelection().addRange(document.createRange()); | 9 document.getSelection().addRange(document.createRange()); |
| 10 document.execCommand("InsertLineBreak"); | 10 document.execCommand("InsertLineBreak"); |
| 11 | 11 |
| 12 var result = "PASS"; | 12 var result = "PASS"; |
| 13 if (window.testRunner) { | 13 if (window.testRunner) { |
| 14 document.write("<html>" + result + "<html>"); | 14 document.body.innerHTML = result; |
| 15 testRunner.dumpAsText(); | 15 testRunner.dumpAsText(); |
| 16 } else | 16 } else |
| 17 document.write("<html>" + result + "<html>"); | 17 document.body.innerHTML = result; |
| 18 } | 18 } |
| 19 </script> | 19 </script> |
| 20 </body> | 20 </body> |
| 21 </html> | 21 </html> |
| OLD | NEW |