| OLD | NEW |
| 1 Check stepUp() and stepDown() behavior 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) is "1" | 8 PASS stepUp("", null, null) is "1" |
| 9 PASS stepDown("", null, null) is "-1" | 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 PASS stepDown("0", "1", null, 2147483648) is "2147483648" |
| 24 Extra arguments | 25 Extra arguments |
| 25 PASS input.value = "0"; input.min = null; input.step = null; input.stepUp(1, 2);
input.value is "1" | 26 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" | 27 PASS input.value = "1"; input.stepDown(1, 3); input.value is "0" |
| 27 Invalid step value | 28 Invalid step value |
| 28 PASS stepUp("0", "foo", null) is "1" | 29 PASS stepUp("0", "foo", null) is "1" |
| 29 PASS stepUp("1", "0", null) is "2" | 30 PASS stepUp("1", "0", null) is "2" |
| 30 PASS stepUp("2", "-1", null) is "3" | 31 PASS stepUp("2", "-1", null) is "3" |
| 31 Step=any | 32 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.. | 33 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.. | 34 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.. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 PASS stepUpExplicitBounds("4", "9", "0.005", "5.005", 2) is "5.015" | 67 PASS stepUpExplicitBounds("4", "9", "0.005", "5.005", 2) is "5.015" |
| 67 PASS stepUpExplicitBounds("4", "9", "0.005", "5.005", 11) is "5.06" | 68 PASS stepUpExplicitBounds("4", "9", "0.005", "5.005", 11) is "5.06" |
| 68 PASS stepUpExplicitBounds("4", "9", "0.005", "5.005", 12) is "5.065" | 69 PASS stepUpExplicitBounds("4", "9", "0.005", "5.005", 12) is "5.065" |
| 69 | 70 |
| 70 This test should not dispatch any |change| events. | 71 This test should not dispatch any |change| events. |
| 71 PASS changeEventCounter is 0 | 72 PASS changeEventCounter is 0 |
| 72 PASS successfullyParsed is true | 73 PASS successfullyParsed is true |
| 73 | 74 |
| 74 TEST COMPLETE | 75 TEST COMPLETE |
| 75 | 76 |
| OLD | NEW |