Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/mixed-editability-3.html

Issue 1806423003: Convert editing/selection layout tests to use w3c test harness, volume 6 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This tests moving the caret forward through content of mixed editability. Th e caret should move down one line from the editable piece to the editable piece that's embedded in a non-editable piece.</p>
6
7 <div contenteditable="true" id="test">
8 editable
9 <table border="1" contenteditable="false"><tr><td contenteditable="true">editabl e</td></tr></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
19 s.modify("move", "forward", "line");
20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698