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

Unified Diff: LayoutTests/fast/canvas/script-tests/gradient-addColorStop-with-invalid-color.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/gradient-addColorStop-with-invalid-color.js
diff --git a/LayoutTests/fast/canvas/script-tests/gradient-addColorStop-with-invalid-color.js b/LayoutTests/fast/canvas/script-tests/gradient-addColorStop-with-invalid-color.js
index 32af68c5ba183a6a9b3b10cd1ef619934e70029b..a338a098039ee8f102aee9d04b0cdfb7cc7a6111 100644
--- a/LayoutTests/fast/canvas/script-tests/gradient-addColorStop-with-invalid-color.js
+++ b/LayoutTests/fast/canvas/script-tests/gradient-addColorStop-with-invalid-color.js
@@ -4,7 +4,7 @@ description(
var gradient = document.createElement('canvas').getContext('2d').createLinearGradient(0, 0, 150, 0);
-shouldThrow("gradient.addColorStop(0, '')", "'Error: SyntaxError: DOM Exception 12'");
-shouldThrow("gradient.addColorStop(0, '#cc')", "'Error: SyntaxError: DOM Exception 12'");
-shouldThrow("gradient.addColorStop(0, 'rgb(257, 0)')", "'Error: SyntaxError: DOM Exception 12'");
-shouldThrow("gradient.addColorStop(0, 'rgb(257, 0, 5, 0)')", "'Error: SyntaxError: DOM Exception 12'");
+shouldThrow("gradient.addColorStop(0, '')", "'SyntaxError: An invalid or illegal string was specified.'");
+shouldThrow("gradient.addColorStop(0, '#cc')", "'SyntaxError: An invalid or illegal string was specified.'");
+shouldThrow("gradient.addColorStop(0, 'rgb(257, 0)')", "'SyntaxError: An invalid or illegal string was specified.'");
+shouldThrow("gradient.addColorStop(0, 'rgb(257, 0, 5, 0)')", "'SyntaxError: An invalid or illegal string was specified.'");

Powered by Google App Engine
This is Rietveld 408576698