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

Unified Diff: LayoutTests/editing/selection/extend-expected.txt

Issue 22608004: Improve 'Selection' exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rewording. Created 7 years, 4 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: LayoutTests/editing/selection/extend-expected.txt
diff --git a/LayoutTests/editing/selection/extend-expected.txt b/LayoutTests/editing/selection/extend-expected.txt
index d5d4382ddc929f3a58bb034ae8b0db669a949dab..ceead658cd5974ad4012b042d1837945c6b5d704 100644
--- a/LayoutTests/editing/selection/extend-expected.txt
+++ b/LayoutTests/editing/selection/extend-expected.txt
@@ -1,8 +1,8 @@
foobarbaz
Success: window.getSelection() is ar.
-Success: s.extend(span2.firstChild, 4) raised IndexSizeError: Index or size was negative, or greater than the allowed value..
-Success: s.extend(span2.firstChild, -1) raised IndexSizeError: Index or size was negative, or greater than the allowed value..
+Success: s.extend(span2.firstChild, 4) raised IndexSizeError: Failed to execute 'extend' on a 'Selection' object: 4 is larger than the given node's length..
+Success: s.extend(span2.firstChild, -1) raised IndexSizeError: Failed to execute 'extend' on a 'Selection' object: -1 is not a valid offset..
Success: window.getSelection() is b.
Success: window.getSelection() is arbaz.
-Success: s.extend() raised TypeMismatchError: The type of an object was incompatible with the expected type of the parameter associated to the object..
-Success: s.extend(null, 0) raised TypeMismatchError: The type of an object was incompatible with the expected type of the parameter associated to the object..
+Success: s.extend() raised TypeMismatchError: Failed to execute 'extend' on a 'Selection' object: The node provided is invalid..
+Success: s.extend(null, 0) raised TypeMismatchError: Failed to execute 'extend' on a 'Selection' object: The node provided is invalid..

Powered by Google App Engine
This is Rietveld 408576698