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

Unified Diff: LayoutTests/fast/html/nav-element.html

Issue 236693002: Replace Selection.collapse() with Selection.removeAllRanges() in layout tests.. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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: LayoutTests/fast/html/nav-element.html
diff --git a/LayoutTests/fast/html/nav-element.html b/LayoutTests/fast/html/nav-element.html
index 733900ec67452b01b630f30f603a51699b676034..21a3ac1fda9b360c8dec8d6dc4050f3bdbca02e2 100644
--- a/LayoutTests/fast/html/nav-element.html
+++ b/LayoutTests/fast/html/nav-element.html
@@ -50,7 +50,7 @@ var ed = document.getElementById("editable");
var selection = window.getSelection();
selection.selectAllChildren(ed);
document.execCommand("FormatBlock", false, "nav");
-selection.collapse();
+selection.removeAllRanges();
ed.blur();
var tests = document.getElementById("testArea");
« no previous file with comments | « LayoutTests/editing/execCommand/overtype.html ('k') | LayoutTests/fast/html/script-tests/article-element.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698