Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / selection / table-caret-1.html
1 <script>
2 if (window.testRunner)
3      testRunner.dumpEditingCallbacks();
4 </script>
5 <style>
6 table, td {
7     border: 1px solid #999;
8 }
9 </style>
10
11 <p>This tests the caret position for the caret before a block table.</p>
12
13 <div contenteditable="true">foo<table id="test"><tr><td>this</td></tr><tr><td>is</td></tr><tr><td>a table</td></tr></table>baz</div>
14
15 <script>
16 var s = window.getSelection();
17 var e = document.getElementById("test");
18
19 s.collapse(e, 0);
20 </script>