Index: LayoutTests/fast/forms/date/input-valueasnumber-date-expected.txt |
diff --git a/LayoutTests/fast/forms/date/input-valueasnumber-date-expected.txt b/LayoutTests/fast/forms/date/input-valueasnumber-date-expected.txt |
index 4e3feda4d0c19dbbdc31f5255d8c5dd5c4037b24..7bed095a885166c6d36ce8e3092e41b48a9ada6b 100644 |
--- a/LayoutTests/fast/forms/date/input-valueasnumber-date-expected.txt |
+++ b/LayoutTests/fast/forms/date/input-valueasnumber-date-expected.txt |
@@ -17,13 +17,17 @@ PASS setValueAsNumberAndGetValue(1, 0, 1) is "0001-01-01" |
PASS setValueAsNumberAndGetValue(275760, 8, 13) is "275760-09-13" |
Tests to set invalid values to valueAsNumber: |
PASS input.value = ""; input.valueAsNumber = null; input.value is "1970-01-01" |
-PASS input.valueAsNumber = "foo" threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is not a number.. |
-PASS input.valueAsNumber = NaN threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is not a number.. |
-PASS input.valueAsNumber = Number.NaN threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is not a number.. |
-PASS input.valueAsNumber = Infinity threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is infinite.. |
-PASS input.valueAsNumber = Number.POSITIVE_INFINITY threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is infinite.. |
-PASS input.valueAsNumber = Number.NEGATIVE_INFINITY threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is infinite.. |
-PASS input.valueAsNumber = Date.UTC(275760, 8, 14) threw exception NotSupportedError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is not a number.. |
+PASS input.valueAsNumber = "foo"; input.valueAsNumber is NaN |
+PASS input.valueAsNumber = "foo"; input.value is "" |
+PASS input.valueAsNumber = NaN; input.valueAsNumber is NaN |
+PASS input.valueAsNumber = NaN; input.value is "" |
+PASS input.valueAsNumber = Number.NaN; input.valueAsNumber is NaN |
+PASS input.valueAsNumber = Number.NaN; input.value is "" |
+PASS input.valueAsNumber = Infinity threw exception TypeError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is infinite.. |
+PASS input.valueAsNumber = Number.POSITIVE_INFINITY threw exception TypeError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is infinite.. |
+PASS input.valueAsNumber = Number.NEGATIVE_INFINITY threw exception TypeError: Failed to set the 'valueAsNumber' property on 'HTMLInputElement': The value provided is infinite.. |
+PASS input.valueAsNumber = Date.UTC(275760, 8, 14); input.valueAsNumber is NaN |
+PASS input.valueAsNumber = Date.UTC(275760, 8, 14); input.value is "" |
PASS successfullyParsed is true |
TEST COMPLETE |