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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/script-tests/DOMSelection-crossing-document.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-crossing-document.js
diff --git a/third_party/WebKit/LayoutTests/editing/selection/script-tests/DOMSelection-crossing-document.js b/third_party/WebKit/LayoutTests/editing/selection/script-tests/DOMSelection-crossing-document.js
index 42634bf90f3598e39383c1ee92873fc6966c8756..e06a9c1236f6cfb1e5c1ab78daef55253580dfd8 100644
--- a/third_party/WebKit/LayoutTests/editing/selection/script-tests/DOMSelection-crossing-document.js
+++ b/third_party/WebKit/LayoutTests/editing/selection/script-tests/DOMSelection-crossing-document.js
@@ -36,7 +36,7 @@ shouldBeNull("foreignSel.anchorNode");
shouldBeNull("mainSel.anchorNode");
clear();
-mainSel.extend(foreignElement, 1);
+shouldThrow("mainSel.extend(foreignElement, 1)");
shouldBeNull("foreignSel.anchorNode");
shouldBeNull("mainSel.anchorNode");

Powered by Google App Engine
This is Rietveld 408576698