upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / editing-nontext-node-crash.xhtml
1 <html xmlns="http://www.w3.org/1999/xhtml">\r
2     <head> \r
3         <script>//<![CDATA[\r
4             if (window.layoutTestController)\r
5                 layoutTestController.dumpAsText();\r
6 \r
7             var selection = window.getSelection();\r
8             function runEditingTest() {\r
9                 var elem = document.getElementById("test2");\r
10                 selection.setPosition(elem, 0);\r
11                 for (i = 0; i < 21; i++)\r
12                     selection.modify("move", "forward", "character");\r
13                 document.execCommand("Delete");\r
14                 \r
15                 // Test completed without crash.\r
16                 document.getElementById("test1").removeChild(elem);\r
17                 document.getElementById("result").innerHTML = "PASS";\r
18             }\r
19         //]]></script>                   \r
20     </head>  \r
21     <body onload="runEditingTest()">\r
22         <p>This tests passes if it does not crash.</p>\r
23         <div id="result"></div>\r
24         <div id="test1" contenteditable="">\r
25             <span id="test2">Something Something <br/>\r
26                 <svg xmlns="http://www.w3.org/2000/svg">\r
27                     <html xmlns="http://www.w3.org/1999/xhtml">\r
28                         <body>\r
29                         </body>\r
30                     </html>\r
31                 </svg>\r
32             </span>\r
33         </div>\r
34     </body>  \r
35 </html>\r
36 \r