Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / forward-delete-at-table-cell-ending.html
blob038fc0324566b8a48f40cf39206265f24e03a14b
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p id="description">This test verifies that forward delete at the end of a table-cell is a no-op. The first dump verifies that the caret stays after 'abc'. The second dump verifies that the caret stays after 'def', and doesn't select the nested table.</p>
5 <div id="test" contenteditable="true"><table border="1"><tr><td id="first">abc</td><td id="second">def</td><td><table><tr><td>ghi</td><td>jkl</td></tr></table></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, 3);
11 document.execCommand("ForwardDelete");
12 Markup.dump("test");
14 window.getSelection().collapse(document.getElementById("second").firstChild, 3);
15 document.execCommand("ForwardDelete");
16 Markup.dump("test");
17 </script>
18 </body>
19 </html>