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

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

Issue 2686663004: Selection API: Selection.extend() should throw if rangeCount is 0. (Closed)
Patch Set: focus() -> collapse() 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/script-tests/DOMSelection-DocumentType.js
diff --git a/third_party/WebKit/LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js b/third_party/WebKit/LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js
index b4e9967fd8d49efef0a4667425d1c9d1d23040ad..6b83df332b347a707d31202bb26d212cd0d64f0c 100644
--- a/third_party/WebKit/LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js
+++ b/third_party/WebKit/LayoutTests/editing/selection/script-tests/DOMSelection-DocumentType.js
@@ -17,7 +17,7 @@ shouldBeNull("sel.anchorNode");
sel.selectAllChildren(docType);
shouldBeNull("sel.anchorNode");
-sel.extend(docType, 0);
+shouldThrow("sel.extend(docType, 0)");
shouldBeNull("sel.anchorNode");
sel.containsNode(docType);

Powered by Google App Engine
This is Rietveld 408576698