upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / indent-partial-table.html
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.layoutTestController)
23     window.layoutTestController.dumpAsText();
24 indent = document.getElementById("secondrow");
25 window.getSelection().setBaseAndExtent(document.getElementById('start'), 0, indent, 0);
26 document.execCommand("indent");
27 </script>