upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / insert-image-with-selecting-document.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.layoutTestController)
6     layoutTestController.dumpAsText();
7
8 function runTest() {
9     document.designMode="on";
10     document.open();
11     window.getSelection().setPosition(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');
16 }
17 </script>
18 </head>
19 <body onload="runTest()"></body>
20 </html>