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

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

Powered by Google App Engine
This is Rietveld 408576698