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

Side by Side Diff: LayoutTests/fast/forms/range/range-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 range type. 1 Check stepUp() and stepDown() behavior for range type.
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 function arguments are (min, max, step, value, [stepCount]) 6 function arguments are (min, max, step, value, [stepCount])
7 Using the default values 7 Using the default values
8 PASS stepUpExplicitBounds(null, null, null, "") is "51" 8 PASS stepUpExplicitBounds(null, null, null, "") is "51"
9 PASS stepDownExplicitBounds(null, null, null, "") is "49" 9 PASS stepDownExplicitBounds(null, null, null, "") is "49"
10 Non-number arguments (stepCount) 10 Non-number arguments (stepCount)
11 PASS stepUpExplicitBounds(null, null, null, "0", "0") is "0" 11 PASS stepUpExplicitBounds(null, null, null, "0", "0") is "0"
(...skipping 17 matching lines...) Expand all
29 PASS stepUpExplicitBounds(null, null, "0", "1") is "2" 29 PASS stepUpExplicitBounds(null, null, "0", "1") is "2"
30 PASS stepUpExplicitBounds(null, null, "-1", "2") is "3" 30 PASS stepUpExplicitBounds(null, null, "-1", "2") is "3"
31 PASS stepDownExplicitBounds(null, null, "foo", "1") is "0" 31 PASS stepDownExplicitBounds(null, null, "foo", "1") is "0"
32 PASS stepDownExplicitBounds(null, null, "0", "2") is "1" 32 PASS stepDownExplicitBounds(null, null, "0", "2") is "1"
33 PASS stepDownExplicitBounds(null, null, "-1", "3") is "2" 33 PASS stepDownExplicitBounds(null, null, "-1", "3") is "2"
34 Step bases 34 Step bases
35 PASS createInputWithContentAttributes(0, 100, "20", "50"); input.value is "60" 35 PASS createInputWithContentAttributes(0, 100, "20", "50"); input.value is "60"
36 PASS createInputWithContentAttributes(null, null, "50", "25"); input.value is "2 5" 36 PASS createInputWithContentAttributes(null, null, "50", "25"); input.value is "2 5"
37 PASS createInputWithContentAttributes(null, null, "50", "25"); input.stepUp(1); input.value is "75" 37 PASS createInputWithContentAttributes(null, null, "50", "25"); input.stepUp(1); input.value is "75"
38 PASS createInputWithContentAttributes(null, null, "50", "25"); input.stepUp(1); input.stepDown(1); input.value is "25" 38 PASS createInputWithContentAttributes(null, null, "50", "25"); input.stepUp(1); input.stepDown(1); input.value is "25"
39 PASS createInputWithContentAttributes(null, null, "50", "25"); input.stepUp(2); input.stepDown(2); threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's new value (125) would be higher than the maximum (100), and snapping to the maximum would exceed the amount of accept ible error.. 39 PASS createInputWithContentAttributes(null, null, "50", "25"); input.stepUp(2); input.stepDown(2); input.value is "25"
40 PASS createInputWithContentAttributes(null, null, "7", "22"); input.stepUp(40); threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputEleme nt': The form element's new value (302) would be higher than the maximum (100), and snapping to the maximum would exceed the amount of acceptible error.. 40 PASS createInputWithContentAttributes(null, null, "7", "22"); input.stepUp(40); input.value is "99"
41 Step=any 41 Step=any
42 PASS stepUpExplicitBounds(null, null, "any", "1") threw exception InvalidStateEr ror: Failed to execute 'stepUp' on 'HTMLInputElement': This form element does no t have an allowed value step.. 42 PASS stepUpExplicitBounds(null, null, "any", "1") threw exception InvalidStateEr ror: Failed to execute 'stepUp' on 'HTMLInputElement': This form element does no t have an allowed value step..
43 PASS stepDownExplicitBounds(null, null, "any", "1") threw exception InvalidState Error: Failed to execute 'stepDown' on 'HTMLInputElement': This form element doe s not have an allowed value step.. 43 PASS stepDownExplicitBounds(null, null, "any", "1") threw exception InvalidState Error: Failed to execute 'stepDown' on 'HTMLInputElement': This form element doe s not have an allowed value step..
44 Overflow/underflow 44 Overflow/underflow
45 PASS stepUpExplicitBounds(null, "100", "1", "99") is "100" 45 PASS stepUpExplicitBounds(null, "100", "1", "99") is "100"
46 PASS stepUpExplicitBounds(null, "100", "1", "100") threw exception InvalidStateE rror: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's new v alue (101) would be higher than the maximum (100), and snapping to the maximum w ould exceed the amount of acceptible error.. 46 PASS stepUpExplicitBounds(null, "100", "1", "100") is "100"
47 PASS input.value is "100" 47 PASS stepUpExplicitBounds(null, "100", "1", "99", "2") is "100"
48 PASS stepUpExplicitBounds(null, "100", "1", "99", "2") threw exception InvalidSt ateError: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's n ew value (101) would be higher than the maximum (100), and snapping to the maxim um would exceed the amount of acceptible error..
49 PASS input.value is "99"
50 PASS stepDownExplicitBounds("0", null, "1", "1") is "0" 48 PASS stepDownExplicitBounds("0", null, "1", "1") is "0"
51 PASS stepDownExplicitBounds("0", null, "1", "0") threw exception InvalidStateErr or: Failed to execute 'stepDown' on 'HTMLInputElement': The form element's new v alue (-1) would be lower than the minimum (0), and snapping to the minimum would exceed the amount of acceptible error.. 49 PASS stepDownExplicitBounds("0", null, "1", "0") is "0"
52 PASS input.value is "0" 50 PASS stepDownExplicitBounds("0", null, "1", "1", "2") is "0"
53 PASS stepDownExplicitBounds("0", null, "1", "1", "2") threw exception InvalidSta teError: Failed to execute 'stepDown' on 'HTMLInputElement': The form element's new value (-1) would be lower than the minimum (0), and snapping to the minimum would exceed the amount of acceptible error.. 51 PASS stepDownExplicitBounds(null, null, "3.40282346e+38", "1", "2") is "0"
54 PASS input.value is "1"
55 PASS stepDownExplicitBounds(null, null, "3.40282346e+38", "1", "2") threw except ion InvalidStateError: Failed to execute 'stepDown' on 'HTMLInputElement': The f orm element's new value (-6.80564692e+38) would be lower than the minimum (0), a nd snapping to the minimum would exceed the amount of acceptible error..
56 PASS stepUpExplicitBounds(-100, 0, 1, -1) is "0" 52 PASS stepUpExplicitBounds(-100, 0, 1, -1) is "0"
57 PASS stepUpExplicitBounds(null, 0, 1, 0) threw exception InvalidStateError: Fail ed to execute 'stepUp' on 'HTMLInputElement': The form element's new value (1) w ould be higher than the maximum (0), and snapping to the maximum would exceed th e amount of acceptible error.. 53 PASS stepUpExplicitBounds(null, 0, 1, 0) is "0"
58 PASS stepUpExplicitBounds(-100, 0, 1, -1, 2) threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's new value ( 1) would be higher than the maximum (0), and snapping to the maximum would excee d the amount of acceptible error.. 54 PASS stepUpExplicitBounds(-100, 0, 1, -1, 2) is "0"
59 PASS input.value is "-1" 55 PASS stepUpExplicitBounds(null, null, "3.40282346e+38", "1", "2") is "0"
60 PASS stepUpExplicitBounds(null, null, "3.40282346e+38", "1", "2") threw exceptio n InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's new value (6.80564692e+38) would be higher than the maximum (100), and snapping to the maximum would exceed the amount of acceptible error..
61 stepDown()/stepUp() for stepMismatch values 56 stepDown()/stepUp() for stepMismatch values
62 PASS stepUpExplicitBounds(null, null, 2, 1) is "4" 57 PASS stepUpExplicitBounds(null, null, 2, 1) is "4"
63 PASS input.stepDown(); input.value is "2" 58 PASS input.stepDown(); input.value is "2"
64 PASS stepUpExplicitBounds(0, null, 10, 9, 9) is "100" 59 PASS stepUpExplicitBounds(0, null, 10, 9, 9) is "100"
65 PASS stepDownExplicitBounds(0, null, 10, 19) is "10" 60 PASS stepDownExplicitBounds(0, null, 10, 19) is "10"
66 value + step is <= max, but rounded result would be > max. 61 value + step is <= max, but rounded result would be > max.
67 PASS stepUpExplicitBounds(null, 99, 10, 89) threw exception InvalidStateError: F ailed to execute 'stepUp' on 'HTMLInputElement': The form element's new value (1 00) would be higher than the maximum (99), and snapping to the maximum would exc eed the amount of acceptible error.. 62 PASS stepUpExplicitBounds(null, 99, 10, 89) is "90"
63 PASS stepUpExplicitBounds(null, 99, 10, 89, 21) is "90"
64 PASS stepUpExplicitBounds(null, 99, 10, 77, 2) is "90"
68 Huge value and small step 65 Huge value and small step
69 PASS stepUpExplicitBounds(0, 1e38, 1, 1e38, 999999) is "1e+38" 66 PASS stepUpExplicitBounds(0, 1e38, 1, 1e38, 999999) is "1e+38"
70 PASS stepDownExplicitBounds(0, 1e38, 1, 1e38, 999999) is "1e+38" 67 PASS stepDownExplicitBounds(0, 1e38, 1, 1e38, 999999) is "1e+38"
71 Fractional numbers 68 Fractional numbers
72 PASS stepUpExplicitBounds(null, null, 0.33333333333333333, 0, 3) is "1" 69 PASS stepUpExplicitBounds(null, null, 0.33333333333333333, 0, 3) is "1"
73 PASS stepUpExplicitBounds(null, null, 0.1, 1) is "1.1" 70 PASS stepUpExplicitBounds(null, null, 0.1, 1) is "1.1"
74 PASS stepUpExplicitBounds(null, null, 0.1, 1, 8) is "1.8" 71 PASS stepUpExplicitBounds(null, null, 0.1, 1, 8) is "1.8"
75 PASS stepUpExplicitBounds(null, null, 0.1, 1, 10) is "2" 72 PASS stepUpExplicitBounds(null, null, 0.1, 1, 10) is "2"
76 PASS input.stepUp(); input.stepUp(); input.stepUp(); input.stepUp(); input.stepU p(); input.stepUp(); input.stepUp(); input.stepUp(); input.stepUp(); input.stepU p(); input.value is "3" 73 PASS input.stepUp(); input.stepUp(); input.stepUp(); input.stepUp(); input.stepU p(); input.stepUp(); input.stepUp(); input.stepUp(); input.stepUp(); input.stepU p(); input.value is "3"
77 PASS stepUpExplicitBounds(0, 1, 0.003921568627450980, 0, 255) is "1" 74 PASS stepUpExplicitBounds(0, 1, 0.003921568627450980, 0, 255) is "1"
78 PASS for (var i = 0; i < 255; i++) { input.stepDown(); }; input.value is "0" 75 PASS for (var i = 0; i < 255; i++) { input.stepDown(); }; input.value is "0"
79 PASS stepDownExplicitBounds(null, null, 0.1, 1, 8) is "0.2" 76 PASS stepDownExplicitBounds(null, null, 0.1, 1, 8) is "0.2"
80 PASS stepDownExplicitBounds(null, null, 0.1, 1) is "0.9" 77 PASS stepDownExplicitBounds(null, null, 0.1, 1) is "0.9"
81 PASS successfullyParsed is true 78 PASS successfullyParsed is true
82 79
83 TEST COMPLETE 80 TEST COMPLETE
84 81
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/range/range-stepup-stepdown.html ('k') | LayoutTests/fast/forms/time/time-stepup-stepdown.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698