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

Unified Diff: LayoutTests/fast/html/script-tests/header-element.js

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/script-tests/header-element.js
diff --git a/LayoutTests/fast/html/script-tests/header-element.js b/LayoutTests/fast/html/script-tests/header-element.js
index 40be5b55e0e226fbde7b74fbd9eef3f6cc847d25..27a8467395c50cc8df300889b4e6896ae0950dbf 100644
--- a/LayoutTests/fast/html/script-tests/header-element.js
+++ b/LayoutTests/fast/html/script-tests/header-element.js
@@ -38,7 +38,7 @@ editable.contentEditable = true;
var selection = window.getSelection();
selection.selectAllChildren(editable);
document.execCommand('FormatBlock', false, 'header');
-selection.collapse();
+selection.removeAllRanges();
shouldBe('document.getElementById("span2").parentNode.nodeName', '"HEADER"');
document.body.removeChild(editable);
« no previous file with comments | « LayoutTests/fast/html/script-tests/footer-element.js ('k') | LayoutTests/fast/html/script-tests/hgroup-element.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698