Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / forms / date / date-stepup-stepdown-expected.txt
index 427ddff..41c5334 100644 (file)
@@ -1,11 +1,11 @@
-Check stepUp() and stepDown() bahevior for type=date.
+Check stepUp() and stepDown() behavior for type=date.
 
 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
 
 
 Invalid value
-PASS stepUp("", null, null) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
-PASS stepDown("", null, null) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
+PASS stepUp("", null, null) is "1970-01-02"
+PASS stepDown("", null, null) is "1969-12-31"
 Non-number arguments
 PASS stepUp("2010-02-10", null, null, "0") is "2010-02-10"
 PASS stepDown("2010-02-10", null, null, "0") is "2010-02-10"
@@ -14,6 +14,7 @@ PASS stepDown("2010-02-10", null, null, "foo") is "2010-02-10"
 PASS stepUp("2010-02-10", null, null, null) is "2010-02-10"
 PASS stepDown("2010-02-10", null, null, null) is "2010-02-10"
 Normal cases
+PASS stepDown("1970-01-04", "2", null) is "1970-01-03"
 PASS stepUp("2010-02-10", null, null) is "2010-02-11"
 PASS stepDown("2010-02-10", null, null) is "2010-02-09"
 PASS stepUp("2010-02-10", null, null, 10) is "2010-02-20"
@@ -21,13 +22,13 @@ PASS stepDown("2010-02-10", null, null, 11) is "2010-01-30"
 PASS stepUp("1970-01-01", "4", null, 2) is "1970-01-09"
 PASS stepDown("1970-01-01", "4", null, 3) is "1969-12-20"
 Step=any
-PASS stepUp("2010-02-10", "any", null) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
-PASS stepDown("2010-02-10", "any", null) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
+PASS stepUp("2010-02-10", "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-10", "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-10", "3.40282346e+38", null) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
-PASS stepDown("2010-02-10", "3.40282346e+38", null) threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
-PASS stepUp("2010-02-10", "1", "2010-02-10") threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
-PASS stepDown("2010-02-10", "1", "2010-02-10") threw exception InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable..
+PASS stepUp("2010-02-10", "3.40282346e+38", null) is "275760-09-13"
+PASS stepDown("2010-02-10", "3.40282346e+38", null) is "1970-01-01"
+PASS stepUp("2010-02-10", "1", "2010-02-10") is "2010-02-10"
+PASS stepDown("2010-02-10", "1", "2010-02-10") is "2010-02-10"
 
 PASS successfullyParsed is true