Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / 5658933-1.html
blob5ebdb29c34b980f0e43cf5714361be5954c54dc0
1 <div id="description">This test for a crash when indenting a particular selection inside an already indented table. It should not crash.</div>
2 <div id="edit" contenteditable="true">
3 <table border="1">
4 <tr><td>1</td><td id="td">2</td></tr>
5 <tr><td>3</td><td>4</td></tr>
6 </table>
7 <br>
8 </div>
10 <script>
11 if (window.testRunner)
12 window.testRunner.dumpAsText();
14 edit = document.getElementById("edit");
15 edit.focus();
16 document.execCommand("SelectAll");
17 document.execCommand("Indent");
18 td = document.getElementById("td");
19 window.getSelection().setBaseAndExtent(td, 0, edit, edit.childNodes.length);
20 document.execCommand("Indent");
21 </script>