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

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

Issue 149413004: HTMLInputElement.valueAsNumber compliance (NaN handling.) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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-valueasnumber-expected.txt
diff --git a/LayoutTests/fast/forms/number/number-valueasnumber-expected.txt b/LayoutTests/fast/forms/number/number-valueasnumber-expected.txt
index 81e4585363d6dd39f07e2c940df3ff495c87221f..87e6a49bf3462eb02bb2badb0119741a7fc940ba 100644
--- a/LayoutTests/fast/forms/number/number-valueasnumber-expected.txt
+++ b/LayoutTests/fast/forms/number/number-valueasnumber-expected.txt
@@ -47,12 +47,12 @@ PASS setValueAsNumberAndGetValue("3.40282346e+38") is "3.40282346e+38"
PASS setValueAsNumberAndGetValue("3.40282348e+38") threw exception InvalidStateError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided (3.40282e+38) is outside the range (-3.40282e+38, 3.40282e+38)..
Tests to set invalid values to valueAsNumber:
PASS setValueAsNumberAndGetValue(null) is "0"
-PASS setValueAsNumberAndGetValue("foo") threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is not a number..
-PASS setValueAsNumberAndGetValue(NaN) threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is not a number..
-PASS setValueAsNumberAndGetValue(Number.NaN) threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is not a number..
-PASS setValueAsNumberAndGetValue(Infinity) threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is infinite..
-PASS setValueAsNumberAndGetValue(Number.POSITIVE_INFINITY) threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is infinite..
-PASS setValueAsNumberAndGetValue(Number.NEGATIVE_INFINITY) threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is infinite..
+PASS setValueAsNumberAndGetValue("foo") is ""
+PASS setValueAsNumberAndGetValue(NaN) is ""
+PASS setValueAsNumberAndGetValue(Number.NaN) is ""
+PASS setValueAsNumberAndGetValue(Infinity) threw exception TypeError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is infinite..
+PASS setValueAsNumberAndGetValue(Number.POSITIVE_INFINITY) threw exception TypeError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is infinite..
+PASS setValueAsNumberAndGetValue(Number.NEGATIVE_INFINITY) threw exception TypeError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is infinite..
PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698