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

Unified Diff: LayoutTests/fast/canvas/resources/canvas-2d-imageData-create-nonfinite.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/resources/canvas-2d-imageData-create-nonfinite.js
diff --git a/LayoutTests/fast/canvas/resources/canvas-2d-imageData-create-nonfinite.js b/LayoutTests/fast/canvas/resources/canvas-2d-imageData-create-nonfinite.js
index f29b8f316d08504a32d150c207471c8f64fa8779..81b284e9c21c30aceb038588cafad57e641dc532 100644
--- a/LayoutTests/fast/canvas/resources/canvas-2d-imageData-create-nonfinite.js
+++ b/LayoutTests/fast/canvas/resources/canvas-2d-imageData-create-nonfinite.js
@@ -3,10 +3,10 @@ description("Test the argument bounds of canvas createImageData.");
var canvas = document.getElementById('canvas');
var ctx = canvas.getContext('2d');
-shouldThrow("ctx.createImageData(Infinity, Infinity)", '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow("ctx.createImageData(Infinity, 10)", '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow("ctx.createImageData(-Infinity, 10)", '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow("ctx.createImageData(10, Infinity)", '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow("ctx.createImageData(10, -Infinity)", '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow("ctx.createImageData(NaN, 10)", '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow("ctx.createImageData(10, NaN)", '"Error: NotSupportedError: DOM Exception 9"');
+shouldThrow("ctx.createImageData(Infinity, Infinity)", '"NotSupportedError: The implementation did not support the requested type of object or operation."');
+shouldThrow("ctx.createImageData(Infinity, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."');
+shouldThrow("ctx.createImageData(-Infinity, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."');
+shouldThrow("ctx.createImageData(10, Infinity)", '"NotSupportedError: The implementation did not support the requested type of object or operation."');
+shouldThrow("ctx.createImageData(10, -Infinity)", '"NotSupportedError: The implementation did not support the requested type of object or operation."');
+shouldThrow("ctx.createImageData(NaN, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."');
+shouldThrow("ctx.createImageData(10, NaN)", '"NotSupportedError: The implementation did not support the requested type of object or operation."');

Powered by Google App Engine
This is Rietveld 408576698