Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / applyblockelement-visiblepositionforindex-crash.html
blobd6754ac0d1941935bb448b541830f71c352e8d6c
1 <script>
3 if (window.testRunner)
4 testRunner.dumpAsText();
6 function runTest() {
7 window.getSelection().setBaseAndExtent(start, 0, null, 0);
8 document.execCommand("Indent");
9 document.body.innerHTML = "PASS. WebKit didn't crash.";
11 </script>
12 <body onload="runTest();">
13 <defs contenteditable="true" id="start">
14 <rt id="rt">A
16 <script>
17 document.write("text");
18 try {
19 elem = document.getElementById("rt");
20 var new_elem = document.createElement("ruby");
21 new_elem.innerHTML = elem.innerHTML;
22 elem.parentNode.insertBefore(new_elem, elem);
23 } catch (e) {}
24 </script>