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

Side by Side Diff: LayoutTests/fast/forms/date/date-stepup-stepdown-expected.txt

Issue 136783006: Upgrade stepUp()/stepDown() implementation to match spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: applyStep(): add missing EventQueueScope 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 unified diff | Download patch
OLDNEW
1 Check stepUp() and stepDown() bahevior for type=date. 1 Check stepUp() and stepDown() behavior for type=date.
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) threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's current value is not a numbe r.. 7 PASS stepUp("", null, null) is "1970-01-02"
8 PASS stepDown("", null, null) threw exception InvalidStateError: Failed to execu te 'stepDown' on 'HTMLInputElement': The form element's current value is not a n umber.. 8 PASS stepDown("", null, null) is "1969-12-31"
9 Non-number arguments 9 Non-number arguments
10 PASS stepUp("2010-02-10", null, null, "0") is "2010-02-10" 10 PASS stepUp("2010-02-10", null, null, "0") is "2010-02-10"
11 PASS stepDown("2010-02-10", null, null, "0") is "2010-02-10" 11 PASS stepDown("2010-02-10", null, null, "0") is "2010-02-10"
12 PASS stepUp("2010-02-10", null, null, "foo") is "2010-02-10" 12 PASS stepUp("2010-02-10", null, null, "foo") is "2010-02-10"
13 PASS stepDown("2010-02-10", null, null, "foo") is "2010-02-10" 13 PASS stepDown("2010-02-10", null, null, "foo") is "2010-02-10"
14 PASS stepUp("2010-02-10", null, null, null) is "2010-02-10" 14 PASS stepUp("2010-02-10", null, null, null) is "2010-02-10"
15 PASS stepDown("2010-02-10", null, null, null) is "2010-02-10" 15 PASS stepDown("2010-02-10", null, null, null) is "2010-02-10"
16 Normal cases 16 Normal cases
17 PASS stepDown("1970-01-04", "2", null) is "1970-01-02" 17 PASS stepDown("1970-01-04", "2", null) is "1970-01-03"
18 PASS stepUp("2010-02-10", null, null) is "2010-02-11" 18 PASS stepUp("2010-02-10", null, null) is "2010-02-11"
19 PASS stepDown("2010-02-10", null, null) is "2010-02-09" 19 PASS stepDown("2010-02-10", null, null) is "2010-02-09"
20 PASS stepUp("2010-02-10", null, null, 10) is "2010-02-20" 20 PASS stepUp("2010-02-10", null, null, 10) is "2010-02-20"
21 PASS stepDown("2010-02-10", null, null, 11) is "2010-01-30" 21 PASS stepDown("2010-02-10", null, null, 11) is "2010-01-30"
22 PASS stepUp("1970-01-01", "4", null, 2) is "1970-01-09" 22 PASS stepUp("1970-01-01", "4", null, 2) is "1970-01-09"
23 PASS stepDown("1970-01-01", "4", null, 3) is "1969-12-20" 23 PASS stepDown("1970-01-01", "4", null, 3) is "1969-12-20"
24 Step=any 24 Step=any
25 PASS stepUp("2010-02-10", "any", null) threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': This form element does not have an a llowed value step.. 25 PASS stepUp("2010-02-10", "any", null) threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': This form element does not have an a llowed value step..
26 PASS stepDown("2010-02-10", "any", null) threw exception InvalidStateError: Fail ed to execute 'stepDown' on 'HTMLInputElement': This form element does not have an allowed value step.. 26 PASS stepDown("2010-02-10", "any", null) threw exception InvalidStateError: Fail ed to execute 'stepDown' on 'HTMLInputElement': This form element does not have an allowed value step..
27 Overflow/underflow 27 Overflow/underflow
28 PASS stepUp("2010-02-10", "3.40282346e+38", null) threw exception InvalidStateEr ror: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's new va lue (2.94003946944e+46) would be higher than the maximum (8640000000000000), and snapping to the maximum would exceed the amount of acceptible error.. 28 PASS stepUp("2010-02-10", "3.40282346e+38", null) is "275760-09-13"
29 PASS stepDown("2010-02-10", "3.40282346e+38", null) threw exception InvalidState Error: Failed to execute 'stepDown' on 'HTMLInputElement': The form element's ne w value (-2.94003946944e+46) would be lower than the minimum (-62135596800000), and snapping to the minimum would exceed the amount of acceptible error.. 29 PASS stepDown("2010-02-10", "3.40282346e+38", null) is "1970-01-01"
30 PASS stepUp("2010-02-10", "1", "2010-02-10") threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's new value ( 1265846400000) would be higher than the maximum (1265760000000), and snapping to the maximum would exceed the amount of acceptible error.. 30 PASS stepUp("2010-02-10", "1", "2010-02-10") is "2010-02-10"
31 PASS stepDown("2010-02-10", "1", "2010-02-10") threw exception InvalidStateError : Failed to execute 'stepDown' on 'HTMLInputElement': The form element's new val ue (1265673600000) would be lower than the minimum (1265760000000), and snapping to the minimum would exceed the amount of acceptible error.. 31 PASS stepDown("2010-02-10", "1", "2010-02-10") is "2010-02-10"
32 32
33 PASS successfullyParsed is true 33 PASS successfullyParsed is true
34 34
35 TEST COMPLETE 35 TEST COMPLETE
36 36
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698