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

Side by Side Diff: LayoutTests/fast/canvas/canvas-overloads-setShadow-expected.txt

Issue 24203002: Improve generated "Not enough arguments." TypeError exceptions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline Created 7 years, 3 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.setShadow() when called with diffe rent numbers of arguments. 1 Test the behavior of CanvasRenderingContext2D.setShadow() when called with diffe rent 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.setShadow() threw exception TypeError: Not enough arguments. 6 PASS ctx.setShadow() threw exception TypeError: Failed to execute 'setShadow' on 'CanvasRenderingContext2D': 3 arguments required, but only 0 present..
7 PASS ctx.setShadow(0) threw exception TypeError: Not enough arguments. 7 PASS ctx.setShadow(0) threw exception TypeError: Failed to execute 'setShadow' o n 'CanvasRenderingContext2D': 3 arguments required, but only 1 present..
8 PASS ctx.setShadow(0, 0) threw exception TypeError: Not enough arguments. 8 PASS ctx.setShadow(0, 0) threw exception TypeError: Failed to execute 'setShadow ' on 'CanvasRenderingContext2D': 3 arguments required, but only 2 present..
9 PASS ctx.setShadow(0, 0, 0) is undefined 9 PASS ctx.setShadow(0, 0, 0) is undefined
10 PASS ctx.setShadow(0, 0, 0, 0) is undefined 10 PASS ctx.setShadow(0, 0, 0, 0) is undefined
11 PASS ctx.setShadow(0, 0, 0, 0, 0) is undefined 11 PASS ctx.setShadow(0, 0, 0, 0, 0) is undefined
12 PASS ctx.setShadow(0, 0, 0, 0, 0, 0) threw exception TypeError: Type error. 12 PASS ctx.setShadow(0, 0, 0, 0, 0, 0) threw exception TypeError: Type error.
13 PASS ctx.setShadow(0, 0, 0, 0, 'red') is undefined 13 PASS ctx.setShadow(0, 0, 0, 0, 'red') is undefined
14 PASS ctx.setShadow(0, 0, 0, 0, 'red', 0) threw exception TypeError: Type error. 14 PASS ctx.setShadow(0, 0, 0, 0, 'red', 0) threw exception TypeError: Type error.
15 PASS ctx.setShadow(0, 0, 0, 0, 'red', 0, 0) is undefined 15 PASS ctx.setShadow(0, 0, 0, 0, 'red', 0, 0) is undefined
16 PASS ctx.setShadow(0, 0, 0, 0, 0, 0) threw exception TypeError: Type error. 16 PASS ctx.setShadow(0, 0, 0, 0, 0, 0) threw exception TypeError: Type error.
17 PASS ctx.setShadow(0, 0, 0, 0, 0, 0, 0) is undefined 17 PASS ctx.setShadow(0, 0, 0, 0, 0, 0, 0) is undefined
18 PASS ctx.setShadow(0, 0, 0, 0, 0, 0, 0, 0) is undefined 18 PASS ctx.setShadow(0, 0, 0, 0, 0, 0, 0, 0) is undefined
19 PASS ctx.setShadow(0, 0, 0, 0, 0, 0, 0, 0, 0) threw exception TypeError: Type er ror. 19 PASS ctx.setShadow(0, 0, 0, 0, 0, 0, 0, 0, 0) threw exception TypeError: Type er ror.
20 PASS successfullyParsed is true 20 PASS successfullyParsed is true
21 21
22 TEST COMPLETE 22 TEST COMPLETE
23 23
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698