Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / deleteFromDocument-after-document-open-crash.html
blobee295092270f36640fb96ec99e696fc2d493bb01
1 <html>
2 <head>
3 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 function run() {
9 selection = window.getSelection();
10 range = document.createRange();
11 selection.addRange(range);
13 document.designMode = "on";
14 document.execCommand("InsertText", false, 'x');
15 document.open();
16 document.execCommand("Undo");
18 selection.deleteFromDocument();
20 document.write('This calling deleteFromDocument after document.open. WebKit should not crash.<br>');
21 document.write('PASS<br>');
23 </script>
24 </head>
25 <body onload="run()">
26 </body>
27 </html>