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

Unified Diff: LayoutTests/fast/canvas/script-tests/linearGradient-infinite-values.js

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/canvas/script-tests/linearGradient-infinite-values.js
diff --git a/LayoutTests/fast/canvas/script-tests/linearGradient-infinite-values.js b/LayoutTests/fast/canvas/script-tests/linearGradient-infinite-values.js
index 4d257fece82b6948cea1672ff7d3fa63198e4705..a498cdae23a1009a3b5858dc6700eed2587b02e1 100644
--- a/LayoutTests/fast/canvas/script-tests/linearGradient-infinite-values.js
+++ b/LayoutTests/fast/canvas/script-tests/linearGradient-infinite-values.js
@@ -4,15 +4,15 @@ description(
var ctx = document.createElement('canvas').getContext('2d');
-shouldThrow("ctx.createLinearGradient(0, 0, 100, NaN)", "'Error: NotSupportedError: DOM Exception 9'");
-shouldThrow("ctx.createLinearGradient(0, 0, 100, Infinity)", "'Error: NotSupportedError: DOM Exception 9'");
-shouldThrow("ctx.createLinearGradient(0, 0, 100, -Infinity)", "'Error: NotSupportedError: DOM Exception 9'");
-shouldThrow("ctx.createLinearGradient(0, 0, NaN, 100)", "'Error: NotSupportedError: DOM Exception 9'");
-shouldThrow("ctx.createLinearGradient(0, 0, Infinity, 100)", "'Error: NotSupportedError: DOM Exception 9'");
-shouldThrow("ctx.createLinearGradient(0, 0, -Infinity, 100)", "'Error: NotSupportedError: DOM Exception 9'");
-shouldThrow("ctx.createLinearGradient(0, NaN, 100, 100)", "'Error: NotSupportedError: DOM Exception 9'");
-shouldThrow("ctx.createLinearGradient(0, Infinity, 100, 100)", "'Error: NotSupportedError: DOM Exception 9'");
-shouldThrow("ctx.createLinearGradient(0, -Infinity, 100, 100)", "'Error: NotSupportedError: DOM Exception 9'");
-shouldThrow("ctx.createLinearGradient(NaN, 0, 100, 100)", "'Error: NotSupportedError: DOM Exception 9'");
-shouldThrow("ctx.createLinearGradient(Infinity, 0, 100, 100)", "'Error: NotSupportedError: DOM Exception 9'");
-shouldThrow("ctx.createLinearGradient(-Infinity, 0, 100, 100)", "'Error: NotSupportedError: DOM Exception 9'");
+shouldThrow("ctx.createLinearGradient(0, 0, 100, NaN)", "'NotSupportedError: The implementation did not support the requested type of object or operation.'");
+shouldThrow("ctx.createLinearGradient(0, 0, 100, Infinity)", "'NotSupportedError: The implementation did not support the requested type of object or operation.'");
+shouldThrow("ctx.createLinearGradient(0, 0, 100, -Infinity)", "'NotSupportedError: The implementation did not support the requested type of object or operation.'");
+shouldThrow("ctx.createLinearGradient(0, 0, NaN, 100)", "'NotSupportedError: The implementation did not support the requested type of object or operation.'");
+shouldThrow("ctx.createLinearGradient(0, 0, Infinity, 100)", "'NotSupportedError: The implementation did not support the requested type of object or operation.'");
+shouldThrow("ctx.createLinearGradient(0, 0, -Infinity, 100)", "'NotSupportedError: The implementation did not support the requested type of object or operation.'");
+shouldThrow("ctx.createLinearGradient(0, NaN, 100, 100)", "'NotSupportedError: The implementation did not support the requested type of object or operation.'");
+shouldThrow("ctx.createLinearGradient(0, Infinity, 100, 100)", "'NotSupportedError: The implementation did not support the requested type of object or operation.'");
+shouldThrow("ctx.createLinearGradient(0, -Infinity, 100, 100)", "'NotSupportedError: The implementation did not support the requested type of object or operation.'");
+shouldThrow("ctx.createLinearGradient(NaN, 0, 100, 100)", "'NotSupportedError: The implementation did not support the requested type of object or operation.'");
+shouldThrow("ctx.createLinearGradient(Infinity, 0, 100, 100)", "'NotSupportedError: The implementation did not support the requested type of object or operation.'");
+shouldThrow("ctx.createLinearGradient(-Infinity, 0, 100, 100)", "'NotSupportedError: The implementation did not support the requested type of object or operation.'");

Powered by Google App Engine
This is Rietveld 408576698