Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-empty-table.html
blob1ed20f346da933da38a484f8fbe2468bebbb165c
1 <script>
2 function runTest(num)
4 sel = window.getSelection();
5 start = document.getElementById("test" + num + "start");
6 end = document.getElementById("test" + num + "end");
7 sel.setBaseAndExtent(start, 0, start, 0);
8 document.execCommand("Delete");
10 </script>
11 <p><a href="rdar://problem/5565461"> Radar 5565461</a>
12 <br>
13 <a href="https://bugs.webkit.org/show_bug.cgi?id=32526">Bug 32526</a>
14 </p>
15 <p>Executing delete command when the selection is on a cell of a table shouldn't remove the entire row.
16 </p>
17 <div contenteditable="true">
18 <table border="1" cellspacing="0"><tr><td width="50" height="25pt" id="test1start"></td></tr><tr><td width="50" height="25pt"></td></tr></table>
19 </div>
21 <script>
22 if (window.testRunner)
23 testRunner.dumpAsText();
25 runTest(1);
26 </script>
28 <p>Executing delete command when the selection is on the last cell of a table shouldn't remove the entire table.
29 </p>
30 <div contenteditable="true">
31 <table border="1" cellspacing="0"><tr><td width="50" height="25pt"></td></tr><tr><td width="50" height="25pt" id="test2start"></td></tr></table>
32 </div>
34 <script>runTest(2);</script>