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

Unified Diff: LayoutTests/fast/forms/number/number-valueasnumber.html

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
Index: LayoutTests/fast/forms/number/number-valueasnumber.html
diff --git a/LayoutTests/fast/forms/number/number-valueasnumber.html b/LayoutTests/fast/forms/number/number-valueasnumber.html
index dd1a047ffa0dd52c62c65cc6d78b29a3efef88fe..e403d0802a7b6f87a881be97f8bee009ddd42c55 100644
--- a/LayoutTests/fast/forms/number/number-valueasnumber.html
+++ b/LayoutTests/fast/forms/number/number-valueasnumber.html
@@ -30,7 +30,7 @@ shouldBe('valueAsNumberFor("-1.2")', '-1.2');
shouldBe('valueAsNumberFor("1.2E10")', '1.2E10');
shouldBe('valueAsNumberFor("1.2E-10")', '1.2E-10');
shouldBe('valueAsNumberFor("1.2E+10")', '1.2E10');
-shouldBe('valueAsNumberFor("123456789012345678901234567890123456789")', '1.2345678901234568E+38');
+shouldBe('valueAsNumberFor("123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789")', '1.2345678901234568E+308');
shouldBe('valueAsNumberFor("0.12345678901234567890123456789012345678901234567890")', '0.123456789012345678');
debug('valueAsNumber for invalid string values:');
@@ -60,11 +60,11 @@ shouldBeEqualToString('setValueAsNumberAndGetValue(-0)', '0');
shouldBeEqualToString('setValueAsNumberAndGetValue(-1.2)', '-1.2');
shouldBeEqualToString('setValueAsNumberAndGetValue(1.2e10)', '12000000000');
shouldBeEqualToString('setValueAsNumberAndGetValue(1.2e-10)', '1.2e-10');
-shouldBeEqualToString('setValueAsNumberAndGetValue(1.2345678901234567e+38)', '1.2345678901234567e+38');
-shouldBeEqualToString('setValueAsNumberAndGetValue("-3.40282346e+38")', '-3.40282346e+38');
-shouldThrow('setValueAsNumberAndGetValue("-3.40282348e+38")', '"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)."');
-shouldBe('setValueAsNumberAndGetValue("3.40282346e+38")', '"3.40282346e+38"');
-shouldThrow('setValueAsNumberAndGetValue("3.40282348e+38")', '"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)."');
+shouldBeEqualToString('setValueAsNumberAndGetValue(1.2345678901234567e+308)', '1.2345678901234567e+308');
+shouldBeEqualToString('setValueAsNumberAndGetValue("-1.797693134862315e+308")', '-1.797693134862315e+308');
+shouldThrow('setValueAsNumberAndGetValue("-1.797693134862316e+308")', '"TypeError: Failed to set the \'valueAsNumber\' property on \'HTMLInputElement\': The value provided is infinite."');
+shouldBe('setValueAsNumberAndGetValue("1.797693134862315e+308")', '"1.797693134862315e+308"');
+shouldThrow('setValueAsNumberAndGetValue("1.797693134862316e+308")', '"TypeError: Failed to set the \'valueAsNumber\' property on \'HTMLInputElement\': The value provided is infinite."');
debug('Tests to set invalid values to valueAsNumber:');
shouldBeEqualToString('setValueAsNumberAndGetValue(null)', '0');

Powered by Google App Engine
This is Rietveld 408576698