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

Unified Diff: LayoutTests/fast/forms/number/number-stepup-stepdown-expected.txt

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 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/fast/forms/number/number-stepup-stepdown-expected.txt
diff --git a/LayoutTests/fast/forms/number/number-stepup-stepdown-expected.txt b/LayoutTests/fast/forms/number/number-stepup-stepdown-expected.txt
index 6141c367988f79ad95e0ddb3b7d4a994058a153a..874742a7c423371bc918f9a1d2aadac5ae6a949b 100644
--- a/LayoutTests/fast/forms/number/number-stepup-stepdown-expected.txt
+++ b/LayoutTests/fast/forms/number/number-stepup-stepdown-expected.txt
@@ -5,8 +5,8 @@ On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
Number type
Invalid value
-PASS stepUp("", null, null) threw exception Error: InvalidStateError: DOM Exception 11.
-PASS stepDown("", null, null) threw exception Error: InvalidStateError: DOM Exception 11.
+PASS stepUp("", null, null) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
+PASS stepDown("", null, null) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
Non-number arguments
PASS stepUp("0", null, null, "0") is "0"
PASS stepDown("0", null, null, "0") is "0"
@@ -29,22 +29,22 @@ PASS stepUp("0", "foo", null) is "1"
PASS stepUp("1", "0", null) is "2"
PASS stepUp("2", "-1", null) is "3"
Step=any
-PASS stepUp("0", "any", null) threw exception Error: InvalidStateError: DOM Exception 11.
-PASS stepDown("0", "any", null) threw exception Error: InvalidStateError: DOM Exception 11.
+PASS stepUp("0", "any", null) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
+PASS stepDown("0", "any", null) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
Step=any corner case
-PASS stepUpExplicitBounds("0", "100", "any", "1.5", "1") threw exception Error: InvalidStateError: DOM Exception 11.
-PASS stepDownExplicitBounds("0", "100", "any", "1.5", "1") threw exception Error: InvalidStateError: DOM Exception 11.
+PASS stepUpExplicitBounds("0", "100", "any", "1.5", "1") threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
+PASS stepDownExplicitBounds("0", "100", "any", "1.5", "1") threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
Overflow/underflow
PASS stepDown("1", "1", "0") is "0"
-PASS stepDown("0", "1", "0") threw exception Error: InvalidStateError: DOM Exception 11.
-PASS stepDown("1", "1", "0", 2) threw exception Error: InvalidStateError: DOM Exception 11.
+PASS stepDown("0", "1", "0") threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
+PASS stepDown("1", "1", "0", 2) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
PASS input.value is "1"
-PASS stepDown("1", "3.40282346e+38", "", 2) threw exception Error: InvalidStateError: DOM Exception 11.
+PASS stepDown("1", "3.40282346e+38", "", 2) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
PASS stepUp("-1", "1", "0") is "0"
-PASS stepUp("0", "1", "0") threw exception Error: InvalidStateError: DOM Exception 11.
-PASS stepUp("-1", "1", "0", 2) threw exception Error: InvalidStateError: DOM Exception 11.
+PASS stepUp("0", "1", "0") threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
+PASS stepUp("-1", "1", "0", 2) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
PASS input.value is "-1"
-PASS stepUp("1", "3.40282346e+38", "", 2) threw exception Error: InvalidStateError: DOM Exception 11.
+PASS stepUp("1", "3.40282346e+38", "", 2) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
stepDown()/stepUp() for stepMismatch values
PASS stepUp("1", "2", "") is "3"
PASS input.stepDown(); input.value is "1"

Powered by Google App Engine
This is Rietveld 408576698