Index: LayoutTests/fast/forms/datetimelocal/datetimelocal-stepup-stepdown-expected.txt |
diff --git a/LayoutTests/fast/forms/datetimelocal/datetimelocal-stepup-stepdown-expected.txt b/LayoutTests/fast/forms/datetimelocal/datetimelocal-stepup-stepdown-expected.txt |
index 9bf45a8090296b1de8b29c1f01603bbbf27c524c..add72c8b4cd84550fd9ff913a04791bf2cea4711 100644 |
--- a/LayoutTests/fast/forms/datetimelocal/datetimelocal-stepup-stepdown-expected.txt |
+++ b/LayoutTests/fast/forms/datetimelocal/datetimelocal-stepup-stepdown-expected.txt |
@@ -1,11 +1,11 @@ |
-Check stepUp() and stepDown() bahevior for type=datetime-local. |
+Check stepUp() and stepDown() behavior for type=datetime-local. |
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
Invalid value |
-PASS stepUp("", null, null) threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's current value is not a number.. |
-PASS stepDown("", null, null) threw exception InvalidStateError: Failed to execute 'stepDown' on 'HTMLInputElement': The form element's current value is not a number.. |
+PASS stepUp("", null, null) is "1970-01-01T00:01" |
+PASS stepDown("", null, null) is "1969-12-31T23:59" |
Non-number arguments |
PASS stepUp("2010-02-10T20:13", null, null, "0") is "2010-02-10T20:13" |
PASS stepDown("2010-02-10T20:13", null, null, "0") is "2010-02-10T20:13" |
@@ -24,10 +24,10 @@ Step=any |
PASS stepUp("2010-02-10T20:13", "any", null) threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': This form element does not have an allowed value step.. |
PASS stepDown("2010-02-10T20:13", "any", null) threw exception InvalidStateError: Failed to execute 'stepDown' on 'HTMLInputElement': This form element does not have an allowed value step.. |
Overflow/underflow |
-PASS stepUp("2010-02-10T20:13", "3.40282346e+38", null) threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's new value (3.40282346e+41) would be higher than the maximum (8640000000000000), and snapping to the maximum would exceed the amount of acceptible error.. |
-PASS stepDown("2010-02-10T20:13", "3.40282346e+38", null) threw exception InvalidStateError: Failed to execute 'stepDown' on 'HTMLInputElement': The form element's new value (-3.40282346e+41) would be lower than the minimum (-62135596800000), and snapping to the minimum would exceed the amount of acceptible error.. |
-PASS stepUp("2010-02-10T20:13", "1", "2010-02-10T20:13") threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's new value (1265832781000) would be higher than the maximum (1265832780000), and snapping to the maximum would exceed the amount of acceptible error.. |
-PASS stepDown("2010-02-10T20:13", "1", "2010-02-10T20:13") threw exception InvalidStateError: Failed to execute 'stepDown' on 'HTMLInputElement': The form element's new value (1265832779000) would be lower than the minimum (1265832780000), and snapping to the minimum would exceed the amount of acceptible error.. |
+PASS stepUp("2010-02-10T20:13", "3.40282346e+38", null) is "275760-09-13T00:00:00" |
+PASS stepDown("2010-02-10T20:13", "3.40282346e+38", null) is "1970-01-01T00:00:00" |
+PASS stepUp("2010-02-10T20:13", "1", "2010-02-10T20:13") is "2010-02-10T20:13:00" |
+PASS stepDown("2010-02-10T20:13", "1", "2010-02-10T20:13") is "2010-02-10T20:13:00" |
PASS successfullyParsed is true |
TEST COMPLETE |