Index: LayoutTests/fast/forms/datetimelocal/input-valueasnumber-datetimelocal-expected.txt |
diff --git a/LayoutTests/fast/forms/datetimelocal/input-valueasnumber-datetimelocal-expected.txt b/LayoutTests/fast/forms/datetimelocal/input-valueasnumber-datetimelocal-expected.txt |
index 4e496346b3c59e7edc930c01fc5547e2083e0a1e..d5370e12121bbf9f3262fae8135bc9a992e6dea7 100644 |
--- a/LayoutTests/fast/forms/datetimelocal/input-valueasnumber-datetimelocal-expected.txt |
+++ b/LayoutTests/fast/forms/datetimelocal/input-valueasnumber-datetimelocal-expected.txt |
@@ -18,13 +18,17 @@ PASS setValueAsNumberAndGetValue(275760, 8, 12, 0, 0, 0, 1) is "275760-09-12T00: |
PASS setValueAsNumberAndGetValue(275760, 8, 13, 0, 0, 0, 0) is "275760-09-13T00:00" |
Tests to set invalid values to valueAsNumber: |
PASS input.value = ""; input.valueAsNumber = null; input.value is "1970-01-01T00:00" |
-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, 13, 0, 0, 0, 1) 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, 13, 0, 0, 0, 1); input.valueAsNumber is NaN |
+PASS input.valueAsNumber = Date.UTC(275760, 8, 13, 0, 0, 0, 1); input.value is "" |
Step attribute value and string representation: |
PASS input.step = "1"; setValueAsNumberAndGetValue(2010, 0, 21, 0, 0, 0, 0) is "2010-01-21T00:00:00" |
PASS input.step = "0.001"; setValueAsNumberAndGetValue(2010, 0, 21, 0, 0, 0, 0) is "2010-01-21T00:00:00.000" |