Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / 5433862-1.html
blob9a93a3efad81979aab07bedf17dbda19099a36f2
1 <body>
3 <p>This tests for a crash when removing a selection ends with a fully selected table row.</p>
5 <div contenteditable="true">
6 <div id="start">foo<br><br></div>
7 <table border="1">
8 <tr><td>foo</td><td>bar</td><td id="end"></td></tr>
9 <tr><td>foo</td><td>bar</td><td>baz</td></tr>
10 </table>
11 </div>
13 <script>
14 if (window.testRunner)
15 window.testRunner.dumpAsText();
17 start = document.getElementById("start");
18 end = document.getElementById("end");
20 window.getSelection().setBaseAndExtent(start, start.childNodes.length, end, end.childNodes.length);
21 document.execCommand("Delete");
22 </script>
24 </body>