Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / selection / home-inside-noneditable-table.html
1 <script src="../../resources/dump-as-markup.js"></script>
2 <table>
3   <tr>
4     <td>
5     <div id="test" contenteditable="true">
6       <div id="l1">The caret is initially here but should move to the beginning of the line.</div>
7       <div>dummy text</div>
8     </div>
9     </td>
10   </tr>
11 </table>
12 <script>
13
14 Markup.description("Tests whether home moves the caret to the beginning of line inside a content-editable in an uneditable table.")
15
16 var s = window.getSelection();
17 s.collapse(document.getElementById('l1').firstChild, 23);
18 Markup.dump('test');
19 s.modify("move", "backward", "lineboundary");
20 Markup.dump('test');
21
22 </script>