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

Side by Side Diff: LayoutTests/fast/forms/week/week-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=week. 1 Check stepUp() and stepDown() behavior for type=week.
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-W02"
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 "1970-W01"
9 Non-number arguments 9 Non-number arguments
10 PASS stepUp("2010-W02", null, null, "0") is "2010-W02" 10 PASS stepUp("2010-W02", null, null, "0") is "2010-W02"
11 PASS stepDown("2010-W02", null, null, "0") is "2010-W02" 11 PASS stepDown("2010-W02", null, null, "0") is "2010-W02"
12 PASS stepUp("2010-W02", null, null, "foo") is "2010-W02" 12 PASS stepUp("2010-W02", null, null, "foo") is "2010-W02"
13 PASS stepDown("2010-W02", null, null, "foo") is "2010-W02" 13 PASS stepDown("2010-W02", null, null, "foo") is "2010-W02"
14 PASS stepUp("2010-W02", null, null, null) is "2010-W02" 14 PASS stepUp("2010-W02", null, null, null) is "2010-W02"
15 PASS stepDown("2010-W02", null, null, null) is "2010-W02" 15 PASS stepDown("2010-W02", null, null, null) is "2010-W02"
16 Normal cases 16 Normal cases
17 PASS stepUp("2010-W02", null, null) is "2010-W03" 17 PASS stepUp("2010-W02", null, null) is "2010-W03"
18 PASS stepDown("2010-W02", null, null) is "2010-W01" 18 PASS stepDown("2010-W02", null, null) is "2010-W01"
19 PASS stepUp("2010-W02", null, null, 10) is "2010-W12" 19 PASS stepUp("2010-W02", null, null, 10) is "2010-W12"
20 PASS stepDown("2010-W02", null, null, 11) is "2009-W44" 20 PASS stepDown("2010-W02", null, null, 11) is "2009-W44"
21 PASS stepUp("1970-W01", "4", null, 2) is "1970-W09" 21 PASS stepUp("1970-W01", "4", null, 2) is "1970-W09"
22 PASS stepDown("1970-W01", "4", null, 3) is "1969-W41" 22 PASS stepDown("1970-W01", "4", null, 3) is "1969-W41"
23 Step=any 23 Step=any
24 PASS stepUp("2010-W02", "any", null) threw exception InvalidStateError: Failed t o execute 'stepUp' on 'HTMLInputElement': This form element does not have an all owed value step.. 24 PASS stepUp("2010-W02", "any", null) threw exception InvalidStateError: Failed t o execute 'stepUp' on 'HTMLInputElement': This form element does not have an all owed value step..
25 PASS stepDown("2010-W02", "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-W02", "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-W02", "3.40282346e+38", null) threw exception InvalidStateErro r: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's new valu e (2.058027628608e+47) would be higher than the maximum (8639999568000000), and snapping to the maximum would exceed the amount of acceptible error.. 27 PASS stepUp("2010-W02", "3.40282346e+38", null) is "275760-W37"
28 PASS stepDown("2010-W02", "3.40282346e+38", null) threw exception InvalidStateEr ror: Failed to execute 'stepDown' on 'HTMLInputElement': The form element's new value (-2.058027628608e+47) would be lower than the minimum (-62135596800000), a nd snapping to the minimum would exceed the amount of acceptible error.. 28 PASS stepDown("2010-W02", "3.40282346e+38", null) is "1970-W01"
29 PASS stepUp("2010-W02", "1", "2010-W02") threw exception InvalidStateError: Fail ed to execute 'stepUp' on 'HTMLInputElement': The form element's new value (1263 772800000) would be higher than the maximum (1263168000000), and snapping to the maximum would exceed the amount of acceptible error.. 29 PASS stepUp("2010-W02", "1", "2010-W02") is "2010-W02"
30 PASS stepDown("2010-W02", "1", "2010-W02") threw exception InvalidStateError: Fa iled to execute 'stepDown' on 'HTMLInputElement': The form element's new value ( 1262563200000) would be lower than the minimum (1263168000000), and snapping to the minimum would exceed the amount of acceptible error.. 30 PASS stepDown("2010-W02", "1", "2010-W02") is "2010-W02"
31 31
32 PASS successfullyParsed is true 32 PASS successfullyParsed is true
33 33
34 TEST COMPLETE 34 TEST COMPLETE
35 35
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/week/week-stepup-stepdown.html ('k') | Source/core/html/forms/DateInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698