upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / 5658933-1.html
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>
9
10 <script>
11 if (window.layoutTestController)
12     window.layoutTestController.dumpAsText();
13     
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>