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

Unified Diff: LayoutTests/fast/forms/month/month-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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/forms/month/month-stepup-stepdown-expected.txt
diff --git a/LayoutTests/fast/forms/month/month-stepup-stepdown-expected.txt b/LayoutTests/fast/forms/month/month-stepup-stepdown-expected.txt
index 8ae117635c36c9e25de4e8e38e9e60921c07dd74..2bb1f670215085770d91ab331fcf467b14e2e362 100644
--- a/LayoutTests/fast/forms/month/month-stepup-stepdown-expected.txt
+++ b/LayoutTests/fast/forms/month/month-stepup-stepdown-expected.txt
@@ -1,11 +1,11 @@
-Check stepUp() and stepDown() bahevior for type=month.
+Check stepUp() and stepDown() behavior for type=month.
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-02"
+PASS stepDown("", null, null) is "1969-12"
Non-number arguments
PASS stepUp("2010-02", null, null, "0") is "2010-02"
PASS stepDown("2010-02", null, null, "0") is "2010-02"
@@ -24,10 +24,10 @@ Step=any
PASS stepUp("2010-02", "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", "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", "3.40282346e+38", null) threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's new value (3.40282346e+38) would be higher than the maximum (3285488), and snapping to the maximum would exceed the amount of acceptible error..
-PASS stepDown("2010-02", "3.40282346e+38", null) threw exception InvalidStateError: Failed to execute 'stepDown' on 'HTMLInputElement': The form element's new value (-3.40282346e+38) would be lower than the minimum (-23628), and snapping to the minimum would exceed the amount of acceptible error..
-PASS stepUp("2010-02", "1", "2010-02") threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's new value (482) would be higher than the maximum (481), and snapping to the maximum would exceed the amount of acceptible error..
-PASS stepDown("2010-02", "1", "2010-02") threw exception InvalidStateError: Failed to execute 'stepDown' on 'HTMLInputElement': The form element's new value (480) would be lower than the minimum (481), and snapping to the minimum would exceed the amount of acceptible error..
+PASS stepUp("2010-02", "3.40282346e+38", null) is "275760-09"
+PASS stepDown("2010-02", "3.40282346e+38", null) is "1970-01"
+PASS stepUp("2010-02", "1", "2010-02") is "2010-02"
+PASS stepDown("2010-02", "1", "2010-02") is "2010-02"
PASS successfullyParsed is true
« no previous file with comments | « LayoutTests/fast/forms/month/month-stepup-stepdown.html ('k') | LayoutTests/fast/forms/number/number-stepup-stepdown.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698