Index: LayoutTests/fast/forms/month/input-valueasnumber-month-expected.txt |
diff --git a/LayoutTests/fast/forms/month/input-valueasnumber-month-expected.txt b/LayoutTests/fast/forms/month/input-valueasnumber-month-expected.txt |
index 697c0e61499cb4835465426d244e7dc45482afbd..ee7146cef110a34096382146ad0bbf2bf724f03c 100644 |
--- a/LayoutTests/fast/forms/month/input-valueasnumber-month-expected.txt |
+++ b/LayoutTests/fast/forms/month/input-valueasnumber-month-expected.txt |
@@ -22,12 +22,15 @@ PASS setValueAsNumberAndGetValue(275760, 9) is "275760-09" |
PASS setValueAsNumberAndGetValue(275760, 10) is "" |
Tests to set invalid values to valueAsNumber: |
PASS input.value = ""; input.valueAsNumber = null; input.value is "1970-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 = "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 successfullyParsed is true |
TEST COMPLETE |