| Index: LayoutTests/fast/forms/range/range-stepup-stepdown-expected.txt
|
| diff --git a/LayoutTests/fast/forms/range/range-stepup-stepdown-expected.txt b/LayoutTests/fast/forms/range/range-stepup-stepdown-expected.txt
|
| index 4bcbac4fe30a41b7e9f67d9ea2f87762f4f53f88..ab1aed0f87c9dc8ca771758920c0c7f534912157 100644
|
| --- a/LayoutTests/fast/forms/range/range-stepup-stepdown-expected.txt
|
| +++ b/LayoutTests/fast/forms/range/range-stepup-stepdown-expected.txt
|
| @@ -1,4 +1,4 @@
|
| -Check stepUp() and stepDown() bahevior for range type.
|
| +Check stepUp() and stepDown() behavior for range type.
|
|
|
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
|
|
| @@ -36,35 +36,32 @@ PASS createInputWithContentAttributes(0, 100, "20", "50"); input.value is "60"
|
| PASS createInputWithContentAttributes(null, null, "50", "25"); input.value is "25"
|
| PASS createInputWithContentAttributes(null, null, "50", "25"); input.stepUp(1); input.value is "75"
|
| PASS createInputWithContentAttributes(null, null, "50", "25"); input.stepUp(1); input.stepDown(1); input.value is "25"
|
| -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 acceptible error..
|
| -PASS createInputWithContentAttributes(null, null, "7", "22"); input.stepUp(40); threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': 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..
|
| +PASS createInputWithContentAttributes(null, null, "50", "25"); input.stepUp(2); input.stepDown(2); input.value is "25"
|
| +PASS createInputWithContentAttributes(null, null, "7", "22"); input.stepUp(40); input.value is "99"
|
| Step=any
|
| PASS stepUpExplicitBounds(null, null, "any", "1") threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': This form element does not have an allowed value step..
|
| PASS stepDownExplicitBounds(null, null, "any", "1") threw exception InvalidStateError: Failed to execute 'stepDown' on 'HTMLInputElement': This form element does not have an allowed value step..
|
| Overflow/underflow
|
| PASS stepUpExplicitBounds(null, "100", "1", "99") is "100"
|
| -PASS stepUpExplicitBounds(null, "100", "1", "100") threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's new value (101) would be higher than the maximum (100), and snapping to the maximum would exceed the amount of acceptible error..
|
| -PASS input.value is "100"
|
| -PASS stepUpExplicitBounds(null, "100", "1", "99", "2") threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's new value (101) would be higher than the maximum (100), and snapping to the maximum would exceed the amount of acceptible error..
|
| -PASS input.value is "99"
|
| +PASS stepUpExplicitBounds(null, "100", "1", "100") is "100"
|
| +PASS stepUpExplicitBounds(null, "100", "1", "99", "2") is "100"
|
| PASS stepDownExplicitBounds("0", null, "1", "1") is "0"
|
| -PASS stepDownExplicitBounds("0", null, "1", "0") threw exception InvalidStateError: 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..
|
| -PASS input.value is "0"
|
| -PASS stepDownExplicitBounds("0", null, "1", "1", "2") threw exception InvalidStateError: 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..
|
| -PASS input.value is "1"
|
| -PASS stepDownExplicitBounds(null, null, "3.40282346e+38", "1", "2") threw exception InvalidStateError: Failed to execute 'stepDown' on 'HTMLInputElement': The form element's new value (-6.80564692e+38) would be lower than the minimum (0), and snapping to the minimum would exceed the amount of acceptible error..
|
| +PASS stepDownExplicitBounds("0", null, "1", "0") is "0"
|
| +PASS stepDownExplicitBounds("0", null, "1", "1", "2") is "0"
|
| +PASS stepDownExplicitBounds(null, null, "3.40282346e+38", "1", "2") is "0"
|
| PASS stepUpExplicitBounds(-100, 0, 1, -1) is "0"
|
| -PASS stepUpExplicitBounds(null, 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 acceptible error..
|
| -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 exceed the amount of acceptible error..
|
| -PASS input.value is "-1"
|
| -PASS stepUpExplicitBounds(null, null, "3.40282346e+38", "1", "2") threw exception 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..
|
| +PASS stepUpExplicitBounds(null, 0, 1, 0) is "0"
|
| +PASS stepUpExplicitBounds(-100, 0, 1, -1, 2) is "0"
|
| +PASS stepUpExplicitBounds(null, null, "3.40282346e+38", "1", "2") is "0"
|
| stepDown()/stepUp() for stepMismatch values
|
| PASS stepUpExplicitBounds(null, null, 2, 1) is "4"
|
| PASS input.stepDown(); input.value is "2"
|
| PASS stepUpExplicitBounds(0, null, 10, 9, 9) is "100"
|
| PASS stepDownExplicitBounds(0, null, 10, 19) is "10"
|
| value + step is <= max, but rounded result would be > max.
|
| -PASS stepUpExplicitBounds(null, 99, 10, 89) threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's new value (100) would be higher than the maximum (99), and snapping to the maximum would exceed the amount of acceptible error..
|
| +PASS stepUpExplicitBounds(null, 99, 10, 89) is "90"
|
| +PASS stepUpExplicitBounds(null, 99, 10, 89, 21) is "90"
|
| +PASS stepUpExplicitBounds(null, 99, 10, 77, 2) is "90"
|
| Huge value and small step
|
| PASS stepUpExplicitBounds(0, 1e38, 1, 1e38, 999999) is "1e+38"
|
| PASS stepDownExplicitBounds(0, 1e38, 1, 1e38, 999999) is "1e+38"
|
|
|