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

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

Powered by Google App Engine
This is Rietveld 408576698