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

Unified Diff: LayoutTests/fast/canvas/script-tests/canvas-overloads-drawImage.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-overloads-drawImage.js
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-overloads-drawImage.js b/LayoutTests/fast/canvas/script-tests/canvas-overloads-drawImage.js
index e074d6e1c2efa303e0bf9b44e2dca8f86c3a8941..e57acae799d4ae1a4058b46c3c0dbc022c446b8b 100644
--- a/LayoutTests/fast/canvas/script-tests/canvas-overloads-drawImage.js
+++ b/LayoutTests/fast/canvas/script-tests/canvas-overloads-drawImage.js
@@ -28,6 +28,6 @@ shouldBe("ctx.drawImage(canvasElement, 0, 0, 0, 0)", "undefined");
shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0)", "TypeError");
shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0)", "TypeError");
shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0)", "TypeError");
-shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0, 0)", "'Error: IndexSizeError: DOM Exception 1'");
+shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0, 0)", "'IndexSizeError: Index or size was negative, or greater than the allowed value.'");
shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0, 0, 0)", "TypeError");
shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)", "TypeError");

Powered by Google App Engine
This is Rietveld 408576698