Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / insert-image-with-selecting-document.html
blobb55c982c55de99c1b936cbeb0efd9599dac69517
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 function runTest() {
9 document.designMode="on";
10 document.open();
11 window.getSelection().collapse(document, 0);
12 document.write("x");
13 document.execCommand("InsertImage");
14 document.open();
15 document.writeln('This test ensures WebKit does not crash when executing InsertImage with selection endpoints are the document node.<br><br>PASS');
17 </script>
18 </head>
19 <body onload="runTest()"></body>
20 </html>