Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / editing-nontext-node-crash.xhtml
blob3af0bca5c5ab79884c7638a0f381bdf50b465b07
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <script>//<![CDATA[
6 if (window.testRunner)
7 testRunner.dumpAsText();
9 var selection = window.getSelection();
10 function runEditingTest() {
11 var elem = document.getElementById("test2");
12 selection.collapse(elem, 0);
13 for (i = 0; i < 21; i++)
14 selection.modify("move", "forward", "character");
15 document.execCommand("Delete");
17 // Test completed without crash.
18 document.getElementById("test1").removeChild(elem);
19 document.getElementById("result").innerHTML = "PASS";
21 //]]></script>
22 </head>
23 <body onload="runEditingTest()">
24 <p>This tests passes if it does not crash.</p>
25 <div id="result"></div>
26 <div id="test1" contenteditable="">
27 <span id="test2">Something Something <br/>
28 <svg xmlns="http://www.w3.org/2000/svg">
29 <html xmlns="http://www.w3.org/1999/xhtml">
30 <body>
31 </body>
32 </html>
33 </svg>
34 </span>
35 </div>
36 </body>
37 </html>