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

Unified Diff: LayoutTests/fast/forms/number/number-stepup-stepdown-from-renderer.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-stepup-stepdown-from-renderer.html
diff --git a/LayoutTests/fast/forms/number/number-stepup-stepdown-from-renderer.html b/LayoutTests/fast/forms/number/number-stepup-stepdown-from-renderer.html
index 006be4e23f7602ba054b9a3f835eb9f632144d41..c5023a3f856f0848f33b1df598a105286cc59bbf 100644
--- a/LayoutTests/fast/forms/number/number-stepup-stepdown-from-renderer.html
+++ b/LayoutTests/fast/forms/number/number-stepup-stepdown-from-renderer.html
@@ -121,11 +121,11 @@ debug('Overflow/underflow');
shouldBe('stepDown("1", "1", "0")', '"0"');
shouldBe('stepDown("0", "1", "0")', '"0"');
shouldBe('stepDown("1", "1", "0", 2)', '"0"');
-shouldBe('stepDown("1", "3.40282346e+38", "", 2)', '"-3.40282346e+38"');
+shouldBe('stepDown("1", "1.797693134862315e+308", "", 2)', '"-1.797693134862315e+308"');
shouldBe('stepUp("-1", "1", "0")', '"0"');
shouldBe('stepUp("0", "1", "0")', '"0"');
shouldBe('stepUp("-1", "1", "0", 2)', '"0"');
-shouldBe('stepUp("1", "3.40282346e+38", "", 2)', '"3.40282346e+38"');
+shouldBe('stepUp("1", "1.797693134862315e+308", "", 2)', '"1.797693134862315e+308"');
debug('stepDown()/stepUp() for stepMismatch values');
shouldBe('stepUp("1", "2", "")', '"2"');
shouldBe('input.min = "0"; stepUp("9", "10", "")', '"10"');
@@ -136,8 +136,8 @@ shouldBe('stepUp("-7", "300", "")', '"0"');
shouldBe('stepDown("7", "300", "")', '"0"');
shouldBe('stepDown("-7", "300", "")', '"-300"');
debug('Huge value and small step');
-shouldBe('input.min = ""; stepUp("1e+38", "1", "", 999)', '"1e+38"');
-shouldBe('input.max = ""; stepDown("1e+38", "1", "", 999)', '"1e+38"');
+shouldBe('input.min = ""; stepUp("1e+308", "1", "", 999)', '"1e+308"');
+shouldBe('input.max = ""; stepDown("1e+308", "1", "", 999)', '"1e+308"');
debug('Fractional numbers');
shouldBe('input.min = ""; stepUp("0", "0.33333333333333333", "", 3)', '"1"');
shouldBe('stepUp("1", "0.1", "", 10)', '"2"');

Powered by Google App Engine
This is Rietveld 408576698