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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/DOMSelection-DocumentType-expected.txt

Issue 2693813002: Selection API: Some functions should throw InvalidNodeTypeError and IndexSizeError. (Closed)
Patch Set: adjust 2 more tests 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/DOMSelection-DocumentType-expected.txt
diff --git a/third_party/WebKit/LayoutTests/editing/selection/DOMSelection-DocumentType-expected.txt b/third_party/WebKit/LayoutTests/editing/selection/DOMSelection-DocumentType-expected.txt
index 14efec3bd6f94314011616d80f77a3e62d63c2aa..f46d4fc65b3c6047db7e2669d33f196d5aef34d7 100644
--- a/third_party/WebKit/LayoutTests/editing/selection/DOMSelection-DocumentType-expected.txt
+++ b/third_party/WebKit/LayoutTests/editing/selection/DOMSelection-DocumentType-expected.txt
@@ -3,9 +3,12 @@ Test to check if setBaseAndExtent guard node with null owner document (Bug 31680
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+PASS sel.setBaseAndExtent(docType, 0, null, 0) threw exception InvalidNodeTypeError: Failed to execute 'setBaseAndExtent' on 'Selection': The node provided is of type 'c'..
PASS sel.anchorNode is null
PASS sel.anchorNode is null
+PASS sel.collapse(docType) threw exception InvalidNodeTypeError: Failed to execute 'collapse' on 'Selection': The node provided is of type 'c'..
PASS sel.anchorNode is null
+PASS sel.selectAllChildren(docType) threw exception InvalidNodeTypeError: Failed to execute 'selectAllChildren' on 'Selection': The node provided is of type 'c'..
PASS sel.anchorNode is null
PASS sel.extend(docType, 0) threw exception InvalidStateError: Failed to execute 'extend' on 'Selection': This Selection object doesn't have any Ranges..
PASS sel.anchorNode is null

Powered by Google App Engine
This is Rietveld 408576698