Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / backspace-at-table-cell-beginning.html
blob5244f7c86d2a7becfab6f60433da6f1bbb507408
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p id="description">This test verifies that backspace at the beginning of a table-cell is a no-op. The first dump verifies that the caret stays before 'abc', and doesn't select the nested table. The second dump verifies that the caret stays before 'def'.</p>
5 <div id="test" contenteditable="true"><table><tr><td><table><tr><td>ghi</td><td>jkl</td></tr></table></td><td id="first">abc</td><td id="second">def</td></tr></table></div>
6 <script src="../../resources/dump-as-markup.js"></script>
7 <script>
8 Markup.description(document.getElementById("description").innerText);
10 window.getSelection().collapse(document.getElementById("first").firstChild, 0);
11 document.execCommand("Delete");
12 Markup.dump("test");
14 window.getSelection().collapse(document.getElementById("second").firstChild, 0);
15 document.execCommand("Delete");
16 Markup.dump("test");
17 </script>
18 </body>
19 </html>