OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script id="script1"></script> |
| 4 <script> |
| 5 if (window.testRunner) |
| 6 testRunner.dumpAsText(); |
| 7 |
| 8 window.onload = function () { |
| 9 document.designMode = "on"; |
| 10 var selection = window.getSelection(); |
| 11 document.execCommand("SelectAll", false) |
| 12 var range = selection.getRangeAt(0); |
| 13 |
| 14 range.insertNode(document.getElementById("script1")); |
| 15 document.execCommand('InsertText', false, 'efgh'); |
| 16 document.execCommand('JustifyFull', false, false); |
| 17 |
| 18 selection.deleteFromDocument(); |
| 19 document.execCommand("Undo", false, false); |
| 20 |
| 21 document.execCommand("Delete"); |
| 22 |
| 23 document.documentElement.innerHTML = "PASS. Blink didn't crash."; |
| 24 }; |
| 25 </script> |
| 26 </head> |
| 27 <body> |
| 28 <h1>abcd</h1> |
| 29 </body> |
| 30 </html> |
OLD | NEW |