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

Unified Diff: LayoutTests/fast/html/script-tests/main-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
« no previous file with comments | « LayoutTests/fast/html/script-tests/hgroup-element.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/html/script-tests/main-element.js
diff --git a/LayoutTests/fast/html/script-tests/main-element.js b/LayoutTests/fast/html/script-tests/main-element.js
index 6e467cf5845210fb4dcd4208eb1d73f5335f9b1f..70b690b3f4b5b080d95347b484f73290ca66e4ba 100644
--- a/LayoutTests/fast/html/script-tests/main-element.js
+++ b/LayoutTests/fast/html/script-tests/main-element.js
@@ -35,7 +35,7 @@ editable.contentEditable = true;
var selection = window.getSelection();
selection.selectAllChildren(editable);
document.execCommand('FormatBlock', false, 'main');
-selection.collapse();
+selection.removeAllRanges();
shouldBe('document.getElementById("span2").parentNode.nodeName', '"MAIN"');
document.body.removeChild(editable);
« no previous file with comments | « LayoutTests/fast/html/script-tests/hgroup-element.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698