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

Unified Diff: LayoutTests/fast/canvas/script-tests/canvas-getImageData-invalid.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/canvas-getImageData-invalid.js
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-getImageData-invalid.js b/LayoutTests/fast/canvas/script-tests/canvas-getImageData-invalid.js
index 9b4fcadec4538fc022485a4b1bb1295c9f504f77..00884a7e751b899939fab6972043bc6514aebdba 100644
--- a/LayoutTests/fast/canvas/script-tests/canvas-getImageData-invalid.js
+++ b/LayoutTests/fast/canvas/script-tests/canvas-getImageData-invalid.js
@@ -2,17 +2,17 @@ description("Test the handling of invalid arguments in canvas getImageData().");
ctx = document.createElement('canvas').getContext('2d');
-shouldThrow("ctx.getImageData(NaN, 10, 10, 10)", '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow("ctx.getImageData(10, NaN, 10, 10)", '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow("ctx.getImageData(10, 10, NaN, 10)", '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow("ctx.getImageData(10, 10, 10, NaN)", '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow("ctx.getImageData(Infinity, 10, 10, 10)", '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow("ctx.getImageData(10, Infinity, 10, 10)", '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow("ctx.getImageData(10, 10, Infinity, 10)", '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow("ctx.getImageData(10, 10, 10, Infinity)", '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow("ctx.getImageData(undefined, 10, 10, 10)", '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow("ctx.getImageData(10, undefined, 10, 10)", '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow("ctx.getImageData(10, 10, undefined, 10)", '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow("ctx.getImageData(10, 10, 10, undefined)", '"Error: NotSupportedError: DOM Exception 9"');
-shouldThrow("ctx.getImageData(10, 10, 0, 10)", '"Error: IndexSizeError: DOM Exception 1"');
-shouldThrow("ctx.getImageData(10, 10, 10, 0)", '"Error: IndexSizeError: DOM Exception 1"');
+shouldThrow("ctx.getImageData(NaN, 10, 10, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."');
+shouldThrow("ctx.getImageData(10, NaN, 10, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."');
+shouldThrow("ctx.getImageData(10, 10, NaN, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."');
+shouldThrow("ctx.getImageData(10, 10, 10, NaN)", '"NotSupportedError: The implementation did not support the requested type of object or operation."');
+shouldThrow("ctx.getImageData(Infinity, 10, 10, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."');
+shouldThrow("ctx.getImageData(10, Infinity, 10, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."');
+shouldThrow("ctx.getImageData(10, 10, Infinity, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."');
+shouldThrow("ctx.getImageData(10, 10, 10, Infinity)", '"NotSupportedError: The implementation did not support the requested type of object or operation."');
+shouldThrow("ctx.getImageData(undefined, 10, 10, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."');
+shouldThrow("ctx.getImageData(10, undefined, 10, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."');
+shouldThrow("ctx.getImageData(10, 10, undefined, 10)", '"NotSupportedError: The implementation did not support the requested type of object or operation."');
+shouldThrow("ctx.getImageData(10, 10, 10, undefined)", '"NotSupportedError: The implementation did not support the requested type of object or operation."');
+shouldThrow("ctx.getImageData(10, 10, 0, 10)", '"IndexSizeError: Index or size was negative, or greater than the allowed value."');
+shouldThrow("ctx.getImageData(10, 10, 10, 0)", '"IndexSizeError: Index or size was negative, or greater than the allowed value."');

Powered by Google App Engine
This is Rietveld 408576698