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

Unified Diff: LayoutTests/fast/forms/time/time-stepup-stepdown-expected.txt

Issue 1340883002: Avoid stack overflow in InputType::applyStep(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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/time/time-stepup-stepdown-expected.txt
diff --git a/LayoutTests/fast/forms/time/time-stepup-stepdown-expected.txt b/LayoutTests/fast/forms/time/time-stepup-stepdown-expected.txt
index e4fb7179ded5ab240705cdf07470c5ef3372ef64..47091d6f0e0e4238b893939773a6b8df9f89efa9 100644
--- a/LayoutTests/fast/forms/time/time-stepup-stepdown-expected.txt
+++ b/LayoutTests/fast/forms/time/time-stepup-stepdown-expected.txt
@@ -24,13 +24,21 @@ Step=any
PASS stepUp("20:13", "any", null) threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': This form element does not have an allowed value step..
PASS stepDown("20:13", "any", null) threw exception InvalidStateError: Failed to execute 'stepDown' on 'HTMLInputElement': This form element does not have an allowed value step..
Overflow/underflow
-PASS stepUp("20:13", "3.40282346e+38", null) is "23:59:59.999"
-PASS stepDown("20:13", "3.40282346e+38", null) is "00:00:00"
+FAIL stepUp("20:13", "3.40282346e+38", null) should be 20:13. Was 00:00:00.
+FAIL stepDown("20:13", "3.40282346e+38", null) should be 20:13. Was 00:00:00.
PASS stepUp("20:13", "1", "20:13") is "20:13:00"
PASS stepDown("20:13", "1", "20:13") is "20:13:00"
PASS stepUp("23:59", null, null) is "23:59"
PASS stepDown("00:00", null, null) is "00:00"
+Step-mismatched initial values
+FAIL stepUp("20:13", "86400.000", null, 65536) should be 20:13. Was 00:00.
+FAIL stepUp("20:13", "86400.001", null, 65536) should be 20:13. Was 00:01:05.535.
+PASS stepUp("20:13", "600", null, 1) is "20:20"
+PASS stepUp("20:13", "600", null, 2) is "20:30"
+PASS stepDown("20:13", "600", null, 1) is "20:10"
+PASS stepDown("20:13", "600", null, 2) is "20:00"
+
PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698