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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/collapse-null-expected.txt

Issue 1498253002: Drop [LegacyInterfaceTypeChecking] for most of Selection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update tests Created 5 years 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/collapse-null-expected.txt
diff --git a/third_party/WebKit/LayoutTests/editing/selection/collapse-null-expected.txt b/third_party/WebKit/LayoutTests/editing/selection/collapse-null-expected.txt
index 6741530f4aaced5857174d1d9d028c8a053d99a1..f8d6e1fd010b57d850f4f354f70500a0c7338192 100644
--- a/third_party/WebKit/LayoutTests/editing/selection/collapse-null-expected.txt
+++ b/third_party/WebKit/LayoutTests/editing/selection/collapse-null-expected.txt
@@ -1,12 +1,13 @@
-Ensure that collapse with null clears selection
+Ensure that collapse or setPosition with null throws an exception
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS selection.rangeCount is 1
-PASS selection.rangeCount is 0
+PASS selection.collapse(null) threw exception TypeError: Failed to execute 'collapse' on 'Selection': parameter 1 is not of type 'Node'..
+PASS selection.rangeCount is 1
+PASS selection.setPosition(null) threw exception TypeError: Failed to execute 'setPosition' on 'Selection': parameter 1 is not of type 'Node'..
PASS selection.rangeCount is 1
-PASS selection.rangeCount is 0
PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698