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

Unified Diff: LayoutTests/fast/canvas/canvas-putImageData.js

Issue 36843003: Improve remaining TypeErrors in bindings code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: vibration. Created 7 years, 1 month 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/canvas-putImageData.js
diff --git a/LayoutTests/fast/canvas/canvas-putImageData.js b/LayoutTests/fast/canvas/canvas-putImageData.js
index b755050f52ff495197753b26cc92748a36bd1cbe..c12bb1ef7f9740a03d6ad03e5768a7071cfb4360 100644
--- a/LayoutTests/fast/canvas/canvas-putImageData.js
+++ b/LayoutTests/fast/canvas/canvas-putImageData.js
@@ -201,7 +201,7 @@ pixelShouldBe(1, 1, [0, 128,0,255]);
pixelShouldBe(9, 9, [0, 128,0,255]);
-shouldThrow("context.putImageData({}, 0, 0)", "'TypeError: Type error'");
+shouldThrow("context.putImageData({}, 0, 0)", '"TypeError: Failed to execute \'putImageData\' on \'CanvasRenderingContext2D\': No function was found that matched the signature provided."');
shouldThrow("context.putImageData(buffer, NaN, 0, 0, 0, 0, 0)", "'NotSupportedError: The implementation did not support the requested type of object or operation.'");
shouldThrow("context.putImageData(buffer, 0, NaN, 0, 0, 0, 0)", "'NotSupportedError: The implementation did not support the requested type of object or operation.'");
shouldThrow("context.putImageData(buffer, 0, 0, NaN, 0, 0, 0)", "'NotSupportedError: The implementation did not support the requested type of object or operation.'");

Powered by Google App Engine
This is Rietveld 408576698