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

Side by Side Diff: LayoutTests/fast/forms/time/time-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=time. 1 Check stepUp() and stepDown() behavior for type=time.
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 "00:01"
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 "00:00"
9 Non-number arguments 9 Non-number arguments
10 PASS stepUp("20:13", null, null, "0") is "20:13" 10 PASS stepUp("20:13", null, null, "0") is "20:13"
11 PASS stepDown("20:13", null, null, "0") is "20:13" 11 PASS stepDown("20:13", null, null, "0") is "20:13"
12 PASS stepUp("20:13", null, null, "foo") is "20:13" 12 PASS stepUp("20:13", null, null, "foo") is "20:13"
13 PASS stepDown("20:13", null, null, "foo") is "20:13" 13 PASS stepDown("20:13", null, null, "foo") is "20:13"
14 PASS stepUp("20:13", null, null, null) is "20:13" 14 PASS stepUp("20:13", null, null, null) is "20:13"
15 PASS stepDown("20:13", null, null, null) is "20:13" 15 PASS stepDown("20:13", null, null, null) is "20:13"
16 Normal cases 16 Normal cases
17 PASS stepUp("20:13", null, null) is "20:14" 17 PASS stepUp("20:13", null, null) is "20:14"
18 PASS stepDown("20:13", null, null) is "20:12" 18 PASS stepDown("20:13", null, null) is "20:12"
19 PASS stepUp("20:13", null, null, 10) is "20:23" 19 PASS stepUp("20:13", null, null, 10) is "20:23"
20 PASS stepDown("20:13", null, null, 11) is "20:02" 20 PASS stepDown("20:13", null, null, 11) is "20:02"
21 PASS stepUp("20:13", "4", null, 2) is "20:13:08" 21 PASS stepUp("20:13", "4", null, 2) is "20:13:08"
22 PASS stepDown("20:13", "4", null, 3) is "20:12:48" 22 PASS stepDown("20:13", "4", null, 3) is "20:12:48"
23 Step=any 23 Step=any
24 PASS stepUp("20:13", "any", null) threw exception InvalidStateError: Failed to e xecute 'stepUp' on 'HTMLInputElement': This form element does not have an allowe d value step.. 24 PASS stepUp("20:13", "any", null) threw exception InvalidStateError: Failed to e xecute 'stepUp' on 'HTMLInputElement': This form element does not have an allowe d value step..
25 PASS stepDown("20:13", "any", null) threw exception InvalidStateError: Failed to execute 'stepDown' on 'HTMLInputElement': This form element does not have an al lowed value step.. 25 PASS stepDown("20:13", "any", null) threw exception InvalidStateError: Failed to execute 'stepDown' on 'HTMLInputElement': This form element does not have an al lowed value step..
26 Overflow/underflow 26 Overflow/underflow
27 PASS stepUp("20:13", "3.40282346e+38", null) threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's new value ( 3.40282346e+41) would be higher than the maximum (86399999), and snapping to the maximum would exceed the amount of acceptible error.. 27 PASS stepUp("20:13", "3.40282346e+38", null) is "23:59:59.999"
28 PASS stepDown("20:13", "3.40282346e+38", null) threw exception InvalidStateError : Failed to execute 'stepDown' on 'HTMLInputElement': The form element's new val ue (-3.40282346e+41) would be lower than the minimum (0), and snapping to the mi nimum would exceed the amount of acceptible error.. 28 PASS stepDown("20:13", "3.40282346e+38", null) is "00:00:00"
29 PASS stepUp("20:13", "1", "20:13") threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's new value (72781000) would be higher than the maximum (72780000), and snapping to the maximum would e xceed the amount of acceptible error.. 29 PASS stepUp("20:13", "1", "20:13") is "20:13:00"
30 PASS stepDown("20:13", "1", "20:13") threw exception InvalidStateError: Failed t o execute 'stepDown' on 'HTMLInputElement': The form element's new value (727790 00) would be lower than the minimum (72780000), and snapping to the minimum woul d exceed the amount of acceptible error.. 30 PASS stepDown("20:13", "1", "20:13") is "20:13:00"
31 PASS stepUp("23:59", null, null) threw exception InvalidStateError: Failed to ex ecute 'stepUp' on 'HTMLInputElement': The form element's new value (86400000) wo uld be higher than the maximum (86399999), and snapping to the maximum would exc eed the amount of acceptible error.. 31 PASS stepUp("23:59", null, null) is "23:59"
32 PASS stepDown("00:00", null, null) threw exception InvalidStateError: Failed to execute 'stepDown' on 'HTMLInputElement': The form element's new value (-60000) would be lower than the minimum (0), and snapping to the minimum would exceed th e amount of acceptible error.. 32 PASS stepDown("00:00", null, null) is "00:00"
33 33
34 PASS successfullyParsed is true 34 PASS successfullyParsed is true
35 35
36 TEST COMPLETE 36 TEST COMPLETE
37 37
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/time/time-stepup-stepdown.html ('k') | LayoutTests/fast/forms/week/week-stepup-stepdown.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698