Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Unified Diff: LayoutTests/fast/forms/week/input-valueasnumber-week.html

Issue 84693008: Improve HTMLInputElement exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/forms/week/input-valueasnumber-week.html
diff --git a/LayoutTests/fast/forms/week/input-valueasnumber-week.html b/LayoutTests/fast/forms/week/input-valueasnumber-week.html
index 7307269964a6f0cdb63b94afd7242cc155df59a3..fedc8234456e04adef24446b8a56600e5c96de7b 100644
--- a/LayoutTests/fast/forms/week/input-valueasnumber-week.html
+++ b/LayoutTests/fast/forms/week/input-valueasnumber-week.html
@@ -67,13 +67,13 @@ shouldBe('setValueAsNumberAndGetValue(275760, 8, 13)', '"275760-W37"');
debug('Tests to set invalid values to valueAsNumber:');
shouldBe('input.value = ""; input.valueAsNumber = null; input.value', '"1970-W01"');
-shouldThrow('input.valueAsNumber = "foo"', '"NotSupportedError: The implementation did not support the requested type of object or operation."');
-shouldThrow('input.valueAsNumber = NaN', '"NotSupportedError: The implementation did not support the requested type of object or operation."');
-shouldThrow('input.valueAsNumber = Number.NaN', '"NotSupportedError: The implementation did not support the requested type of object or operation."');
-shouldThrow('input.valueAsNumber = Infinity', '"NotSupportedError: The implementation did not support the requested type of object or operation."');
-shouldThrow('input.valueAsNumber = Number.POSITIVE_INFINITY', '"NotSupportedError: The implementation did not support the requested type of object or operation."');
-shouldThrow('input.valueAsNumber = Number.NEGATIVE_INFINITY', '"NotSupportedError: The implementation did not support the requested type of object or operation."');
-shouldThrow('input.valueAsNumber = Date.UTC(275760, 8, 14)', '"NotSupportedError: The implementation did not support the requested type of object or operation."');
+shouldThrow('input.valueAsNumber = "foo"', '"NotSupportedError: Failed to set the \'valueAsNumber\' property on \'HTMLInputElement\': The value provided is not a number."');
+shouldThrow('input.valueAsNumber = NaN', '"NotSupportedError: Failed to set the \'valueAsNumber\' property on \'HTMLInputElement\': The value provided is not a number."');
+shouldThrow('input.valueAsNumber = Number.NaN', '"NotSupportedError: Failed to set the \'valueAsNumber\' property on \'HTMLInputElement\': The value provided is not a number."');
+shouldThrow('input.valueAsNumber = Infinity', '"NotSupportedError: Failed to set the \'valueAsNumber\' property on \'HTMLInputElement\': The value provided is infinite."');
+shouldThrow('input.valueAsNumber = Number.POSITIVE_INFINITY', '"NotSupportedError: Failed to set the \'valueAsNumber\' property on \'HTMLInputElement\': The value provided is infinite."');
+shouldThrow('input.valueAsNumber = Number.NEGATIVE_INFINITY', '"NotSupportedError: Failed to set the \'valueAsNumber\' property on \'HTMLInputElement\': The value provided is infinite."');
+shouldThrow('input.valueAsNumber = Date.UTC(275760, 8, 14)', '"NotSupportedError: Failed to set the \'valueAsNumber\' property on \'HTMLInputElement\': The value provided is not a number."');
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698