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

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

Issue 172223003: Input type Number maximum value increase (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reverted back StepRange changes Created 6 years, 10 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
« no previous file with comments | « LayoutTests/fast/forms/number/number-valueasnumber.html ('k') | Source/core/html/forms/NumberInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 87e6a49bf3462eb02bb2badb0119741a7fc940ba..0efa5dec0b33b3d16a381b6b38d12f2ff526058b 100644
--- a/LayoutTests/fast/forms/number/number-valueasnumber-expected.txt
+++ b/LayoutTests/fast/forms/number/number-valueasnumber-expected.txt
@@ -13,7 +13,7 @@ PASS valueAsNumberFor("-1.2") is -1.2
PASS valueAsNumberFor("1.2E10") is 1.2E10
PASS valueAsNumberFor("1.2E-10") is 1.2E-10
PASS valueAsNumberFor("1.2E+10") is 1.2E10
-PASS valueAsNumberFor("123456789012345678901234567890123456789") is 1.2345678901234568E+38
+PASS valueAsNumberFor("123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789") is 1.2345678901234568E+308
PASS valueAsNumberFor("0.12345678901234567890123456789012345678901234567890") is 0.123456789012345678
valueAsNumber for invalid string values:
PASS isNaN(valueAsNumberFor("")) is true
@@ -40,11 +40,11 @@ PASS setValueAsNumberAndGetValue(-0) is "0"
PASS setValueAsNumberAndGetValue(-1.2) is "-1.2"
PASS setValueAsNumberAndGetValue(1.2e10) is "12000000000"
PASS setValueAsNumberAndGetValue(1.2e-10) is "1.2e-10"
-PASS setValueAsNumberAndGetValue(1.2345678901234567e+38) is "1.2345678901234567e+38"
-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)..
-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)..
+PASS setValueAsNumberAndGetValue(1.2345678901234567e+308) is "1.2345678901234567e+308"
+PASS setValueAsNumberAndGetValue("-1.797693134862315e+308") is "-1.797693134862315e+308"
+PASS setValueAsNumberAndGetValue("-1.797693134862316e+308") threw exception TypeError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is infinite..
+PASS setValueAsNumberAndGetValue("1.797693134862315e+308") is "1.797693134862315e+308"
+PASS setValueAsNumberAndGetValue("1.797693134862316e+308") threw exception TypeError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is infinite..
Tests to set invalid values to valueAsNumber:
PASS setValueAsNumberAndGetValue(null) is "0"
PASS setValueAsNumberAndGetValue("foo") is ""
« no previous file with comments | « LayoutTests/fast/forms/number/number-valueasnumber.html ('k') | Source/core/html/forms/NumberInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698