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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/wrapped-line-caret-1.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/editing/selection/wrapped-line-caret-1.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/wrapped-line-caret-1.html b/third_party/WebKit/LayoutTests/editing/selection/wrapped-line-caret-1.html
index db7ed15920d55d8e652e7eccf1fbfd0840bf3179..304ad74d5b913dcc1d433711f066c0d4f7a43437 100644
--- a/third_party/WebKit/LayoutTests/editing/selection/wrapped-line-caret-1.html
+++ b/third_party/WebKit/LayoutTests/editing/selection/wrapped-line-caret-1.html
@@ -3,6 +3,7 @@
<div id="edit" contentEditable="true" style="width: 350px; height: 100px; border: 1px solid blue;">a&nbsp;</div>
<script>
var edit = document.getElementById("edit");
+edit.focus();
edit.appendChild(document.createTextNode("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"));
window.getSelection().collapse(edit.firstChild, 2);
</script>

Powered by Google App Engine
This is Rietveld 408576698