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

Unified Diff: LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js

Issue 225303002: Let Selection.collapse remember a raw Position instead of a canonicalized one. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix setSelectedRange arguments Created 6 years, 6 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/editing/selection/script-tests/DOMSelection-DocumentType.js
diff --git a/LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js b/LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js
index 596c07013595f369a0049543f751ec8c1f91d3e1..d44f417b258c06a0f2d196af2b56e0e7a6265ced 100644
--- a/LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js
+++ b/LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js
@@ -9,8 +9,7 @@ shouldBeNull("sel.anchorNode");
sel.setBaseAndExtent(null, 0, docType, 0);
shouldBeNull("sel.anchorNode");
-sel.collapse(docType);
-shouldBeNull("sel.anchorNode");
+shouldThrow("sel.collapse(docType)", '"InvalidNodeTypeError: Failed to execute \'collapse\' on \'Selection\': The node provided is of type \'c\'."');
sel.selectAllChildren(docType);
shouldBeNull("sel.anchorNode");

Powered by Google App Engine
This is Rietveld 408576698