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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/select-element-paragraph-boundary.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/select-element-paragraph-boundary.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/select-element-paragraph-boundary.html b/third_party/WebKit/LayoutTests/editing/selection/select-element-paragraph-boundary.html
index f45eb97abc0a1ba9eea1d7c253d0529cd53cd51d..6fd9576992c3f3c69868fe25b9f9853923ab4c7a 100644
--- a/third_party/WebKit/LayoutTests/editing/selection/select-element-paragraph-boundary.html
+++ b/third_party/WebKit/LayoutTests/editing/selection/select-element-paragraph-boundary.html
@@ -8,7 +8,7 @@ if (window.testRunner)
<script>
var sel = window.getSelection();
var div = document.getElementById("div");
-
+div.focus();
sel.collapse(div, 0);
sel.modify("move", "forward", "paragraphBoundary");
</script>

Powered by Google App Engine
This is Rietveld 408576698