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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Test the behavior of CanvasRenderingContext2D.setStrokeColor() when called with different numbers of arguments. 1 Test the behavior of CanvasRenderingContext2D.setStrokeColor() when called with different numbers of arguments.
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS ctx.setStrokeColor() threw exception TypeError: Failed to execute 'setStrok eColor' on 'CanvasRenderingContext2D': 1 argument required, but only 0 present.. 6 PASS ctx.setStrokeColor() threw exception TypeError: Failed to execute 'setStrok eColor' on 'CanvasRenderingContext2D': 1 argument required, but only 0 present..
7 PASS ctx.setStrokeColor('red') is undefined 7 PASS ctx.setStrokeColor('red') is undefined
8 PASS ctx.setStrokeColor(0) is undefined 8 PASS ctx.setStrokeColor(0) is undefined
9 PASS ctx.setStrokeColor(0, 0) is undefined 9 PASS ctx.setStrokeColor(0, 0) is undefined
10 FAIL ctx.setStrokeColor(0, 0, 0) should throw "TypeError: Failed to execute 'set StrokeColor' on 'CanvasRenderingContext2D': No function was found that matched t he signature provided.". Threw exception TypeError: Failed to execute 'setStroke Color' on 'CanvasRenderingContext2D': No function was found that matched the sig nature provided.. 10 PASS ctx.setStrokeColor(0, 0, 0) threw exception TypeError: Failed to execute 's etStrokeColor' on 'CanvasRenderingContext2D': Valid arities are: [1, 2, 4, 5], b ut 3 arguments provided..
11 PASS ctx.setStrokeColor(0, 0, 0, 0) is undefined 11 PASS ctx.setStrokeColor(0, 0, 0, 0) is undefined
12 PASS ctx.setStrokeColor(0, 0, 0, 0, 0) is undefined 12 PASS ctx.setStrokeColor(0, 0, 0, 0, 0) is undefined
13 FAIL ctx.setStrokeColor(0, 0, 0, 0, 0, 0) should throw "TypeError: Failed to exe cute '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 matche d the signature provided.. 13 PASS ctx.setStrokeColor(0, 0, 0, 0, 0, 0) threw exception TypeError: Failed to e xecute 'setStrokeColor' on 'CanvasRenderingContext2D': Valid arities are: [1, 2, 4, 5], but 6 arguments provided..
14 PASS successfullyParsed is true 14 PASS successfullyParsed is true
15 15
16 TEST COMPLETE 16 TEST COMPLETE
17 17
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698