| OLD | NEW |
| 1 Check stepUp() and stepDown() bahevior for number type. | 1 Check stepUp() and stepDown() behavior for number 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 Number type | 6 Number type |
| 7 Invalid value | 7 Invalid value |
| 8 PASS stepUp("", null, null) threw exception InvalidStateError: Failed to execute
'stepUp' on 'HTMLInputElement': The form element's current value is not a numbe
r.. | 8 PASS stepUp("", null, null) is "1" |
| 9 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.. | 9 PASS stepDown("", null, null) is "-1" |
| 10 Non-number arguments | 10 Non-number arguments |
| 11 PASS stepUp("0", null, null, "0") is "0" | 11 PASS stepUp("0", null, null, "0") is "0" |
| 12 PASS stepDown("0", null, null, "0") is "0" | 12 PASS stepDown("0", null, null, "0") is "0" |
| 13 PASS stepUp("0", null, null, "foo") is "0" | 13 PASS stepUp("0", null, null, "foo") is "0" |
| 14 PASS stepDown("0", null, null, "foo") is "0" | 14 PASS stepDown("0", null, null, "foo") is "0" |
| 15 PASS stepUp("0", null, null, null) is "0" | 15 PASS stepUp("0", null, null, null) is "0" |
| 16 PASS stepDown("0", null, null, null) is "0" | 16 PASS stepDown("0", null, null, null) is "0" |
| 17 Normal cases | 17 Normal cases |
| 18 PASS stepUp("0", null, null) is "1" | 18 PASS stepUp("0", null, null) is "1" |
| 19 PASS stepUp("1", null, null, 2) is "3" | 19 PASS stepUp("1", null, null, 2) is "3" |
| 20 PASS stepUp("3", null, null, -1) is "2" | 20 PASS stepUp("3", null, null, -1) is "2" |
| 21 PASS stepDown("2", null, null) is "1" | 21 PASS stepDown("2", null, null) is "1" |
| 22 PASS stepDown("1", null, null, 2) is "-1" | 22 PASS stepDown("1", null, null, 2) is "-1" |
| 23 PASS stepDown("-1", null, null, -1) is "0" | 23 PASS stepDown("-1", null, null, -1) is "0" |
| 24 Extra arguments | 24 Extra arguments |
| 25 PASS input.value = "0"; input.min = null; input.step = null; input.stepUp(1, 2);
input.value is "1" | 25 PASS input.value = "0"; input.min = null; input.step = null; input.stepUp(1, 2);
input.value is "1" |
| 26 PASS input.value = "1"; input.stepDown(1, 3); input.value is "0" | 26 PASS input.value = "1"; input.stepDown(1, 3); input.value is "0" |
| 27 Invalid step value | 27 Invalid step value |
| 28 PASS stepUp("0", "foo", null) is "1" | 28 PASS stepUp("0", "foo", null) is "1" |
| 29 PASS stepUp("1", "0", null) is "2" | 29 PASS stepUp("1", "0", null) is "2" |
| 30 PASS stepUp("2", "-1", null) is "3" | 30 PASS stepUp("2", "-1", null) is "3" |
| 31 Step=any | 31 Step=any |
| 32 PASS stepUp("0", "any", null) threw exception InvalidStateError: Failed to execu
te 'stepUp' on 'HTMLInputElement': This form element does not have an allowed va
lue step.. | 32 PASS stepUp("0", "any", null) threw exception InvalidStateError: Failed to execu
te 'stepUp' on 'HTMLInputElement': This form element does not have an allowed va
lue step.. |
| 33 PASS stepDown("0", "any", null) threw exception InvalidStateError: Failed to exe
cute 'stepDown' on 'HTMLInputElement': This form element does not have an allowe
d value step.. | 33 PASS stepDown("0", "any", null) threw exception InvalidStateError: Failed to exe
cute 'stepDown' on 'HTMLInputElement': This form element does not have an allowe
d value step.. |
| 34 Step=any corner case | 34 Step=any corner case |
| 35 PASS stepUpExplicitBounds("0", "100", "any", "1.5", "1") threw exception Invalid
StateError: Failed to execute 'stepUp' on 'HTMLInputElement': This form element
does not have an allowed value step.. | 35 PASS stepUpExplicitBounds("0", "100", "any", "1.5", "1") threw exception Invalid
StateError: Failed to execute 'stepUp' on 'HTMLInputElement': This form element
does not have an allowed value step.. |
| 36 PASS stepDownExplicitBounds("0", "100", "any", "1.5", "1") threw exception Inval
idStateError: Failed to execute 'stepDown' on 'HTMLInputElement': This form elem
ent does not have an allowed value step.. | 36 PASS stepDownExplicitBounds("0", "100", "any", "1.5", "1") threw exception Inval
idStateError: Failed to execute 'stepDown' on 'HTMLInputElement': This form elem
ent does not have an allowed value step.. |
| 37 Overflow/underflow | 37 Overflow/underflow |
| 38 PASS stepDown("1", "1", "0") is "0" | 38 PASS stepDown("1", "1", "0") is "0" |
| 39 PASS stepDown("0", "1", "0") threw exception InvalidStateError: Failed to execut
e 'stepDown' on 'HTMLInputElement': The form element's new value (-1) would be l
ower than the minimum (0), and snapping to the minimum would exceed the amount o
f acceptible error.. | 39 PASS stepDown("0", "1", "0") is "0" |
| 40 PASS stepDown("1", "1", "0", 2) threw exception InvalidStateError: Failed to exe
cute 'stepDown' on 'HTMLInputElement': The form element's new value (-1) would b
e lower than the minimum (0), and snapping to the minimum would exceed the amoun
t of acceptible error.. | 40 PASS stepDown("1", "1", "0", 2) is "0" |
| 41 PASS input.value is "1" | 41 PASS stepDown("1", "3.40282346e+38", "", 2) is "-3.40282346e+38" |
| 42 PASS stepDown("1", "3.40282346e+38", "", 2) threw exception InvalidStateError: F
ailed to execute 'stepDown' on 'HTMLInputElement': The form element's new value
(-6.80564692e+38) would be lower than the minimum (-3.4028234663852886e+38), and
snapping to the minimum would exceed the amount of acceptible error.. | |
| 43 PASS stepUp("-1", "1", "0") is "0" | 42 PASS stepUp("-1", "1", "0") is "0" |
| 44 PASS stepUp("0", "1", "0") 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 exceed the amount of ac
ceptible error.. | 43 PASS stepUp("0", "1", "0") is "0" |
| 45 PASS stepUp("-1", "1", "0", 2) threw exception InvalidStateError: Failed to exec
ute 'stepUp' on 'HTMLInputElement': The form element's new value (1) would be hi
gher than the maximum (0), and snapping to the maximum would exceed the amount o
f acceptible error.. | 44 PASS stepUp("-1", "1", "0", 2) is "0" |
| 46 PASS input.value is "-1" | 45 PASS stepUp("1", "3.40282346e+38", "", 2) is "3.40282346e+38" |
| 47 PASS stepUp("1", "3.40282346e+38", "", 2) threw exception InvalidStateError: Fai
led to execute 'stepUp' on 'HTMLInputElement': The form element's new value (6.8
0564692e+38) would be higher than the maximum (3.4028234663852886e+38), and snap
ping to the maximum would exceed the amount of acceptible error.. | |
| 48 stepDown()/stepUp() for stepMismatch values | 46 stepDown()/stepUp() for stepMismatch values |
| 49 PASS stepUp("1", "2", "") is "3" | 47 PASS stepUpExplicitBounds("0", "", "2", "1"); input.value is "2" |
| 50 PASS input.stepDown(); input.value is "1" | 48 PASS stepUp("1", "2", "") is "2" |
| 51 PASS input.min = "0"; stepUp("9", "10", "", 9) is "99" | 49 PASS input.stepDown(); input.value is "0" |
| 52 PASS stepDown("19", "10", "0") is "9" | 50 PASS input.min = "0"; stepUp("9", "10", "", 9) is "90" |
| 53 PASS stepUp("89", "10", "99") is "99" | 51 PASS stepDown("19", "10", "0") is "10" |
| 52 PASS stepUp("89", "10", "99") is "90" |
| 54 Huge value and small step | 53 Huge value and small step |
| 55 PASS input.min = ""; stepUp("1e+38", "1", "", 999999) is "1e+38" | 54 PASS input.min = ""; stepUp("1e+38", "1", "", 999999) is "1e+38" |
| 56 PASS input.max = ""; stepDown("1e+38", "1", "", 999999) is "1e+38" | 55 PASS input.max = ""; stepDown("1e+38", "1", "", 999999) is "1e+38" |
| 57 Fractional numbers | 56 Fractional numbers |
| 58 PASS input.min = ""; stepUp("0", "0.33333333333333333", "", 3) is "1" | 57 PASS input.min = ""; stepUp("0", "0.33333333333333333", "", 3) is "1" |
| 59 PASS stepUp("1", "0.1", "", 10) is "2" | 58 PASS stepUp("1", "0.1", "", 10) is "2" |
| 60 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" | 59 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" |
| 61 PASS input.min = "0"; stepUp("0", "0.003921568627450980", "1", 255) is "1" | 60 PASS input.min = "0"; stepUp("0", "0.003921568627450980", "1", 255) is "1" |
| 62 PASS for (var i = 0; i < 255; i++) { input.stepDown(); }; input.value is "0" | 61 PASS for (var i = 0; i < 255; i++) { input.stepDown(); }; input.value is "0" |
| 63 Rounding | 62 Rounding |
| 64 PASS stepUp("5.005", "0.005", "", 2) is "5.015" | 63 PASS stepUp("5.005", "0.005", "", 2) is "5.015" |
| 65 PASS stepUp("5.005", "0.005", "", 11) is "5.06" | 64 PASS stepUp("5.005", "0.005", "", 11) is "5.06" |
| 66 PASS stepUp("5.005", "0.005", "", 12) is "5.065" | 65 PASS stepUp("5.005", "0.005", "", 12) is "5.065" |
| 67 PASS stepUpExplicitBounds("4", "9", "0.005", "5.005", 2) is "5.015" | 66 PASS stepUpExplicitBounds("4", "9", "0.005", "5.005", 2) is "5.015" |
| 68 PASS stepUpExplicitBounds("4", "9", "0.005", "5.005", 11) is "5.06" | 67 PASS stepUpExplicitBounds("4", "9", "0.005", "5.005", 11) is "5.06" |
| 69 PASS stepUpExplicitBounds("4", "9", "0.005", "5.005", 12) is "5.065" | 68 PASS stepUpExplicitBounds("4", "9", "0.005", "5.005", 12) is "5.065" |
| 70 PASS successfullyParsed is true | 69 PASS successfullyParsed is true |
| 71 | 70 |
| 72 TEST COMPLETE | 71 TEST COMPLETE |
| 73 | 72 |
| OLD | NEW |