Index: LayoutTests/fast/forms/week/input-valueasnumber-week-expected.txt |
diff --git a/LayoutTests/fast/forms/week/input-valueasnumber-week-expected.txt b/LayoutTests/fast/forms/week/input-valueasnumber-week-expected.txt |
index 295710af7d68a2b53268857262ba9c7892448ee6..9aa75914d1505625b8396d7adb6d5648a598b3fd 100644 |
--- a/LayoutTests/fast/forms/week/input-valueasnumber-week-expected.txt |
+++ b/LayoutTests/fast/forms/week/input-valueasnumber-week-expected.txt |
@@ -33,13 +33,17 @@ PASS setValueAsNumberAndGetValue(275760, 8, 8) is "275760-W37" |
PASS setValueAsNumberAndGetValue(275760, 8, 13) is "275760-W37" |
Tests to set invalid values to valueAsNumber: |
PASS input.value = ""; input.valueAsNumber = null; input.value is "1970-W01" |
-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 |