Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-block-table.html
blob89099e1e4070c8be82384040180c6bc5d4f4fb78
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p>This test checks that deleting into a table works properly. When deleting three times with the cursor after the character "a" in the "after" text after the table, the "a" should be deleted, as should the "o" of "buffalo" in the last table cell.</p>
5 <div contenteditable="true" id="root">
6 <div>Before</div>
7 <table style="border:3px solid #aaa;">
8 <tr>
9 <td>
10 Foo
11 </td>
12 <td>
13 baz
14 </td>
15 </tr>
16 <tr>
17 <td>
18 bar
19 </td>
20 <td>
21 buffalo
22 </td>
23 </tr>
24 </table>
25 <span id="start">after</span>
26 </div>
27 <script src=../editing.js></script>
28 <script>
29 function editingTest() {
30 var selection = window.getSelection();
31 var s = document.getElementById("start");
32 selection.collapse(s, 0);
33 execMoveSelectionForwardByCharacterCommand();
34 for (i = 0; i < 3; i++) {
35 deleteCommand();
38 runDumpAsTextEditingTest();
39 </script>
40 </body>
41 </html>