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

Unified Diff: LayoutTests/fast/forms/week/input-valueasnumber-week-expected.txt

Issue 84693008: Improve HTMLInputElement exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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/week/input-valueasnumber-week-expected.txt
diff --git a/LayoutTests/fast/forms/week/input-valueasnumber-week-expected.txt b/LayoutTests/fast/forms/week/input-valueasnumber-week-expected.txt
index 10cebc4917909e6d511d799cc698f4e253d09aa6..295710af7d68a2b53268857262ba9c7892448ee6 100644
--- a/LayoutTests/fast/forms/week/input-valueasnumber-week-expected.txt
+++ b/LayoutTests/fast/forms/week/input-valueasnumber-week-expected.txt
@@ -33,13 +33,13 @@ PASS setValueAsNumberAndGetValue(275760, 8, 8) is "275760-W37"
PASS setValueAsNumberAndGetValue(275760, 8, 13) is "275760-W37"
Tests to set invalid values to valueAsNumber:
PASS input.value = ""; input.valueAsNumber = null; input.value is "1970-W01"
-PASS input.valueAsNumber = "foo" threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
-PASS input.valueAsNumber = NaN threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
-PASS input.valueAsNumber = Number.NaN threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
-PASS input.valueAsNumber = Infinity threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
-PASS input.valueAsNumber = Number.POSITIVE_INFINITY threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
-PASS input.valueAsNumber = Number.NEGATIVE_INFINITY threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
-PASS input.valueAsNumber = Date.UTC(275760, 8, 14) threw exception NotSupportedError: The implementation did not support the requested type of object or operation..
+PASS input.valueAsNumber = "foo" threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is not a number..
+PASS input.valueAsNumber = NaN threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is not a number..
+PASS input.valueAsNumber = Number.NaN threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is not a number..
+PASS input.valueAsNumber = Infinity threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is infinite..
+PASS input.valueAsNumber = Number.POSITIVE_INFINITY threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is infinite..
+PASS input.valueAsNumber = Number.NEGATIVE_INFINITY threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is infinite..
+PASS input.valueAsNumber = Date.UTC(275760, 8, 14) threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is not a number..
PASS successfullyParsed is true
TEST COMPLETE
« no previous file with comments | « LayoutTests/fast/forms/week/input-valueasnumber-week.html ('k') | LayoutTests/fast/forms/week/week-setrangetext-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698