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

Unified Diff: LayoutTests/fast/canvas/script-tests/canvas-overloads-drawImage.js

Issue 291563004: Overload resolution: ignore extra arguments (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline Created 6 years, 7 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 dfccb6119d40cf2967de8db3e1a32172253b7241..3c9d525d4ae87a6238e65e1c334bfdf15f86ebcf 100644
--- a/LayoutTests/fast/canvas/script-tests/canvas-overloads-drawImage.js
+++ b/LayoutTests/fast/canvas/script-tests/canvas-overloads-drawImage.js
@@ -13,8 +13,8 @@ shouldThrow("ctx.drawImage(imageElement, 0, 0, 0, 0, 0)");
shouldThrow("ctx.drawImage(imageElement, 0, 0, 0, 0, 0, 0)");
shouldThrow("ctx.drawImage(imageElement, 0, 0, 0, 0, 0, 0, 0)");
shouldBe("ctx.drawImage(imageElement, 0, 0, 0, 0, 0, 0, 0, 0)", "undefined");
-shouldThrow("ctx.drawImage(imageElement, 0, 0, 0, 0, 0, 0, 0, 0, 0)");
-shouldThrow("ctx.drawImage(imageElement, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)");
+shouldBe("ctx.drawImage(imageElement, 0, 0, 0, 0, 0, 0, 0, 0, 0)", "undefined");
+shouldBe("ctx.drawImage(imageElement, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)", "undefined");
var canvasElement = document.createElement("canvas");
shouldThrow("ctx.drawImage(canvasElement)");
@@ -26,5 +26,5 @@ shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0)");
shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0)");
shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0)");
shouldBe("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0, 0)", "undefined");
-shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0, 0, 0)");
-shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)");
+shouldBe("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0, 0, 0)", "undefined");
+shouldBe("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)", "undefined");

Powered by Google App Engine
This is Rietveld 408576698