Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / selection / mixed-editability-9.html
1 <script>
2 if (window.testRunner)
3      testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This tests moving the caret backward through content of mixed editability. The caret should back to just before the outlined table.</p>
6
7 <div contenteditable="true">
8 editable
9 <table border="1" contenteditable="false"><tbody><tr><td><div style="display:inline-block; "><span>static</span><span id="test" contenteditable="plaintext-only">editable</span></div></td></tr></tbody></table>
10 editable
11 </div>
12
13 <script>
14 var e = document.getElementById("test");
15 var s = window.getSelection();
16
17 s.collapse(e, 0);
18 s.modify("move", "forward", "character");
19
20 s.modify("move", "backward", "lineboundary");
21 </script>