| <!DOCTYPE HTML> | |
| <html> | |
| <body onload="go()"> | |
| Test InsertLineBreak is called correctly without any exception. | |
| <script> | |
| function go() { | |
| document.designMode="on"; | |
| document.write("</"); | |
| document.getSelection().addRange(document.createRange()); | |
| document.execCommand("InsertLineBreak"); | |
| var result = "PASS"; | |
| if (window.testRunner) { | |
| document.write("<html>" + result + "<html>"); | |
| testRunner.dumpAsText(); | |
| } else | |
| document.write("<html>" + result + "<html>"); | |
| } | |
| </script> | |
| </body> | |
| </html> |