Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / 5432254-2.html
blob18974fae7cbc8dc7940eb633f98ba59348af112e
1 <p>This tests for a deletion bug. The paragraph inside the table should be in a list, and the test shouldn't hang.</p>
2 <div id="div" contenteditable="true"><div><table id="table" border="1"><tr><td id="td">foo</td></tr></table></div>
4 <br id="br"></div>
5 <p id="console"></p>
7 <script>
9 if (window.testRunner)
10 testRunner.dumpAsText();
12 function log(message) {
13 var console = document.getElementById("console");
14 var text = document.createTextNode(message);
15 console.appendChild(text);
18 td = document.getElementById("td");
19 br = document.getElementById("br");
20 s = window.getSelection();
21 s.setBaseAndExtent(td, 0, br, 0);
22 document.execCommand("InsertUnorderedList");
24 log(document.getElementById('div').innerHTML);
26 </script>
28 PASS