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

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

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 months 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/date/input-valueasnumber-date.html
diff --git a/LayoutTests/fast/forms/date/input-valueasnumber-date.html b/LayoutTests/fast/forms/date/input-valueasnumber-date.html
index 67bbfa210ea5bd7901b2a77abfd32caad5997d30..97ddd6dcd46dfa784291aa8459aaec2f36619a2c 100644
--- a/LayoutTests/fast/forms/date/input-valueasnumber-date.html
+++ b/LayoutTests/fast/forms/date/input-valueasnumber-date.html
@@ -43,13 +43,13 @@ shouldBe('setValueAsNumberAndGetValue(275760, 8, 13)', '"275760-09-13"');
debug('Tests to set invalid values to valueAsNumber:');
shouldBe('input.value = ""; input.valueAsNumber = null; input.value', '"1970-01-01"');
-shouldThrow('input.valueAsNumber = "foo"', '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow('input.valueAsNumber = NaN', '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow('input.valueAsNumber = Number.NaN', '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow('input.valueAsNumber = Infinity', '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow('input.valueAsNumber = Number.POSITIVE_INFINITY', '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow('input.valueAsNumber = Number.NEGATIVE_INFINITY', '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow('input.valueAsNumber = Date.UTC(275760, 8, 14)', '"Error: NotSupportedError: DOM Exception 9"');
+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."');
</script>
<script src="../../js/resources/js-test-post.js"></script>
</body>

Powered by Google App Engine
This is Rietveld 408576698