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

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

Powered by Google App Engine
This is Rietveld 408576698