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

Side by Side Diff: LayoutTests/fast/forms/month/month-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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Check stepUp() and stepDown() behavior for type=month. 1 Check stepUp() and stepDown() behavior for type=month.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 Invalid value 6 Invalid value
7 PASS stepUp("", null, null) is "1970-02" 7 PASS stepUp("", null, null) is "1970-02"
8 PASS stepDown("", null, null) is "1969-12" 8 PASS stepDown("", null, null) is "1969-12"
9 Non-number arguments 9 Non-number arguments
10 PASS stepUp("2010-02", null, null, "0") is "2010-02" 10 PASS stepUp("2010-02", null, null, "0") is "2010-02"
11 PASS stepDown("2010-02", null, null, "0") is "2010-02" 11 PASS stepDown("2010-02", null, null, "0") is "2010-02"
12 PASS stepUp("2010-02", null, null, "foo") is "2010-02" 12 PASS stepUp("2010-02", null, null, "foo") is "2010-02"
13 PASS stepDown("2010-02", null, null, "foo") is "2010-02" 13 PASS stepDown("2010-02", null, null, "foo") is "2010-02"
14 PASS stepUp("2010-02", null, null, null) is "2010-02" 14 PASS stepUp("2010-02", null, null, null) is "2010-02"
15 PASS stepDown("2010-02", null, null, null) is "2010-02" 15 PASS stepDown("2010-02", null, null, null) is "2010-02"
16 Normal cases 16 Normal cases
17 PASS stepUp("2010-02", null, null) is "2010-03" 17 PASS stepUp("2010-02", null, null) is "2010-03"
18 PASS stepDown("2010-02", null, null) is "2010-01" 18 PASS stepDown("2010-02", null, null) is "2010-01"
19 PASS stepUp("2010-02", null, null, 10) is "2010-12" 19 PASS stepUp("2010-02", null, null, 10) is "2010-12"
20 PASS stepDown("2010-02", null, null, 11) is "2009-03" 20 PASS stepDown("2010-02", null, null, 11) is "2009-03"
21 PASS stepUp("1970-01", "4", null, 2) is "1970-09" 21 PASS stepUp("1970-01", "4", null, 2) is "1970-09"
22 PASS stepDown("1970-01", "4", null, 3) is "1969-01" 22 PASS stepDown("1970-01", "4", null, 3) is "1969-01"
23 Step=any 23 Step=any
24 PASS stepUp("2010-02", "any", null) threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': This form element does not have an allo wed value step.. 24 PASS stepUp("2010-02", "any", null) threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': This form element does not have an allo wed value step..
25 PASS stepDown("2010-02", "any", null) threw exception InvalidStateError: Failed to execute 'stepDown' on 'HTMLInputElement': This form element does not have an allowed value step.. 25 PASS stepDown("2010-02", "any", null) threw exception InvalidStateError: Failed to execute 'stepDown' on 'HTMLInputElement': This form element does not have an allowed value step..
26 Overflow/underflow 26 Overflow/underflow
27 PASS stepUp("2010-02", "3.40282346e+38", null) is "275760-09" 27 FAIL stepUp("2010-02", "3.40282346e+38", null) should be 2010-02. Was 1970-01.
28 PASS stepDown("2010-02", "3.40282346e+38", null) is "1970-01" 28 FAIL stepDown("2010-02", "3.40282346e+38", null) should be 2010-02. Was 1970-01.
29 PASS stepUp("2010-02", "1", "2010-02") is "2010-02" 29 PASS stepUp("2010-02", "1", "2010-02") is "2010-02"
30 PASS stepDown("2010-02", "1", "2010-02") is "2010-02" 30 PASS stepDown("2010-02", "1", "2010-02") is "2010-02"
31 31
32 PASS successfullyParsed is true 32 PASS successfullyParsed is true
33 33
34 TEST COMPLETE 34 TEST COMPLETE
35 35
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698