Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / mixed-editability-3.html
blobf11148f3b1e04ffa3448bb971a695a671bcc3dd1
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This tests moving the caret forward through content of mixed editability. The caret should move down one line from the editable piece to the editable piece that's embedded in a non-editable piece.</p>
7 <div contenteditable="true" id="test">
8 editable
9 <table border="1" contenteditable="false"><tr><td contenteditable="true">editable</td></tr></table>
10 editable
11 </div>
13 <script>
14 var e = document.getElementById("test");
15 var s = window.getSelection();
17 s.collapse(e, 0);
19 s.modify("move", "forward", "line");
20 </script>