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

Unified Diff: LayoutTests/fast/canvas/script-tests/canvas-overloads-fillText.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-fillText.js
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-overloads-fillText.js b/LayoutTests/fast/canvas/script-tests/canvas-overloads-fillText.js
index c6b78659b52c21841a2de725c1939593c6dac2d7..452bfc317103698a955806111c0f47e38237bc2b 100644
--- a/LayoutTests/fast/canvas/script-tests/canvas-overloads-fillText.js
+++ b/LayoutTests/fast/canvas/script-tests/canvas-overloads-fillText.js
@@ -6,8 +6,6 @@ function ExpectedNotEnoughArgumentsMessage(num) {
return "\"TypeError: Failed to execute 'fillText' on 'CanvasRenderingContext2D': 3 arguments required, but only " + num + " present.\"";
}
-var TypeError = "TypeError: Type error";
-
shouldThrow("ctx.fillText()", ExpectedNotEnoughArgumentsMessage(0));
shouldThrow("ctx.fillText('moo')", ExpectedNotEnoughArgumentsMessage(1));
shouldThrow("ctx.fillText('moo',0)", ExpectedNotEnoughArgumentsMessage(2));

Powered by Google App Engine
This is Rietveld 408576698