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

Unified Diff: LayoutTests/fast/canvas/script-tests/canvas-overloads-setFillColor.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/script-tests/canvas-overloads-setFillColor.js
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-overloads-setFillColor.js b/LayoutTests/fast/canvas/script-tests/canvas-overloads-setFillColor.js
index b2e5dfd44e14c09b26d08b44ebee5cd1b8188b49..c841baa74fe3cdf70991e3fb51e7ebff86583185 100644
--- a/LayoutTests/fast/canvas/script-tests/canvas-overloads-setFillColor.js
+++ b/LayoutTests/fast/canvas/script-tests/canvas-overloads-setFillColor.js
@@ -6,7 +6,7 @@ function ExpectedNotEnoughArgumentsMessage(num) {
return "\"TypeError: Failed to execute 'setFillColor' on 'CanvasRenderingContext2D': 1 argument required, but only " + num + " present.\"";
}
-var TypeError = "TypeError: Type error";
+var TypeError = '"TypeError: Failed to execute \'setFillColor\' on \'CanvasRenderingContext2D\': No function was found that matched the signature provided."';
shouldThrow("ctx.setFillColor()", ExpectedNotEnoughArgumentsMessage(0));
shouldBe("ctx.setFillColor('red')", "undefined");

Powered by Google App Engine
This is Rietveld 408576698