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

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

Issue 2698413002: selection: Align collapse-NN.html and extend-NN.html to the latest draft. (Closed)
Patch Set: 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 260203df1769291147f97dc179049002e444ac61..c32319eb6e6032f9e0507f431b815eba2427ca0f 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,8 @@ shouldBeNull("sel.anchorNode");
shouldThrow("sel.selectAllChildren(docType)");
shouldBeNull("sel.anchorNode");
-shouldThrow("sel.extend(docType, 0)");
+// DOCTYPE in a different root should not throw.
+sel.extend(docType, 0);
shouldBeNull("sel.anchorNode");
sel.containsNode(docType);

Powered by Google App Engine
This is Rietveld 408576698