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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/wrapped-line-caret-2.html

Issue 2709983005: Selection API: Do not change focus by Selection functions. (Closed)
Patch Set: . Created 3 years, 10 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
1 <span>This test passes if the caret is at the start of the second line.</span> 1 <span>This test passes if the caret is at the start of the second line.</span>
2 2
3 <div id="edit" contentEditable="true" style="width: 350px; height: 100px; border : 1px solid blue;">a&nbsp;<span style=color:blue;">xxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxx</span></div> 3 <div id="edit" contentEditable="true" style="width: 350px; height: 100px; border : 1px solid blue;">a&nbsp;<span style=color:blue;">xxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxx</span></div>
4 <script> 4 <script>
5 var edit = document.getElementById("edit"); 5 var edit = document.getElementById("edit");
6 edit.focus();
6 window.getSelection().collapse(edit.firstChild, 2); 7 window.getSelection().collapse(edit.firstChild, 2);
7 </script> 8 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698