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

Unified Diff: LayoutTests/fast/canvas/canvas-overloads-setStrokeColor-expected.txt

Issue 284163002: Better arity checks for overloads (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Return properly 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/canvas-overloads-setStrokeColor-expected.txt
diff --git a/LayoutTests/fast/canvas/canvas-overloads-setStrokeColor-expected.txt b/LayoutTests/fast/canvas/canvas-overloads-setStrokeColor-expected.txt
index 30e79631c0c7e998e90f141e84276f37a1e0bee6..33c6e5eb1e053a44f33aaef33d32ebd01c8fc3a4 100644
--- a/LayoutTests/fast/canvas/canvas-overloads-setStrokeColor-expected.txt
+++ b/LayoutTests/fast/canvas/canvas-overloads-setStrokeColor-expected.txt
@@ -7,10 +7,10 @@ PASS ctx.setStrokeColor() threw exception TypeError: Failed to execute 'setStrok
PASS ctx.setStrokeColor('red') is undefined
PASS ctx.setStrokeColor(0) is undefined
PASS ctx.setStrokeColor(0, 0) is undefined
-FAIL ctx.setStrokeColor(0, 0, 0) should throw "TypeError: Failed to execute 'setStrokeColor' on 'CanvasRenderingContext2D': No function was found that matched the signature provided.". Threw exception TypeError: Failed to execute 'setStrokeColor' on 'CanvasRenderingContext2D': No function was found that matched the signature provided..
+PASS ctx.setStrokeColor(0, 0, 0) threw exception TypeError: Failed to execute 'setStrokeColor' on 'CanvasRenderingContext2D': Valid arities are: [1, 2, 4, 5], but 3 arguments provided..
PASS ctx.setStrokeColor(0, 0, 0, 0) is undefined
PASS ctx.setStrokeColor(0, 0, 0, 0, 0) is undefined
-FAIL ctx.setStrokeColor(0, 0, 0, 0, 0, 0) should throw "TypeError: Failed to execute 'setStrokeColor' on 'CanvasRenderingContext2D': No function was found that matched the signature provided.". Threw exception TypeError: Failed to execute 'setStrokeColor' on 'CanvasRenderingContext2D': No function was found that matched the signature provided..
+PASS ctx.setStrokeColor(0, 0, 0, 0, 0, 0) threw exception TypeError: Failed to execute 'setStrokeColor' on 'CanvasRenderingContext2D': Valid arities are: [1, 2, 4, 5], but 6 arguments provided..
PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698