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'); |