Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / indent-partial-table.html
blobbd50be07b7bfe40b434d7580b46f5c815e1669be
1 <p>This tests for a crash when indenting a table that is not entirely selected.</p>
2 <div contenteditable="true" id="test">
3 <div><br></div>
4 <div id="start"><br></div>
5 <table border="1">
6 <tbody>
7 <tr id="firstrow">
8 <td>One</td>
9 <td>Two</td>
10 </tr>
11 <tr id="secondrow">
12 <td>Three</td>
13 <td>Four</td>
14 </tr>
15 </tbody>
16 </table>
17 <br>
18 <div><br></div>
19 <div><br></div>
20 </div>
21 <script>
22 if (window.testRunner)
23 window.testRunner.dumpAsText();
24 indent = document.getElementById("secondrow");
25 window.getSelection().setBaseAndExtent(document.getElementById('start'), 0, indent, 0);
26 document.execCommand("indent");
27 </script>