Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / table-cells.html
blob14846a4bd313063ee4d9c04df188ea18a268e684
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This tests deletion of a selection that spans multiple cells. Just table content should be removed, not table structure.</p>
6 <div id="test" contenteditable="true"><table border="1"><tr><td><div>These two pieces of text<span id="start">blah</span></div></td><td><div><span id="end">blah</span> should be in different cells.</div></td></tr></table>
8 <script>
9 var start = document.getElementById("start").firstChild;
10 var end = document.getElementById("end").firstChild;
12 var s = window.getSelection();
13 s.setBaseAndExtent(start, 0, end, end.length);
14 document.execCommand("Delete");
15 </script>