Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-last-char-in-table.html
blob6f4ac585447e977dc40097ebb8e9ce76d388f4ec
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p>See bug 57148. When deleteing the last character in a table deletes the table, no styled spans should be left behind.
5 To test manually, place cursor after "X" and do a backward delete. No styled span should be created.</p>
7 <div id="root" contenteditable class="editing">
8 <table style="border-collapse:collapse"><tr><td id="cursor">X</td></tr></table>
9 </div>
11 <div id="result"></div>
13 <script src="../editing.js"></script>
14 <script>
16 function editingTest() {
17 var cursorCell = document.getElementById("cursor");
18 execSetSelectionCommand(cursorCell.firstChild, 1, cursorCell.firstChild, 1);
19 execDeleteCommand();
20 var styledSpans = document.getElementsByTagName("span");
21 result.innerHTML = styledSpans.length == 0 ? "PASS" : "FAIL";
24 if (window.testRunner)
25 runDumpAsTextEditingTest();
26 </script>
27 </body>
28 </html>