OLD | NEW |
1 Test the behavior of CanvasRenderingContext2D.setFillColor() when called with di
fferent numbers of arguments. | 1 Test the behavior of CanvasRenderingContext2D.setFillColor() when called with di
fferent 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.setFillColor() threw exception TypeError: Failed to execute 'setFillCol
or' on 'CanvasRenderingContext2D': 1 argument required, but only 0 present.. | 6 PASS ctx.setFillColor() threw exception TypeError: Failed to execute 'setFillCol
or' on 'CanvasRenderingContext2D': 1 argument required, but only 0 present.. |
7 PASS ctx.setFillColor('red') is undefined | 7 PASS ctx.setFillColor('red') is undefined |
8 PASS ctx.setFillColor(0) is undefined | 8 PASS ctx.setFillColor(0) is undefined |
9 PASS ctx.setFillColor(0, 0) is undefined | 9 PASS ctx.setFillColor(0, 0) is undefined |
10 FAIL ctx.setFillColor(0, 0, 0) should throw "TypeError: Failed to execute 'setFi
llColor' on 'CanvasRenderingContext2D': No function was found that matched the s
ignature provided.". Threw exception TypeError: Failed to execute 'setFillColor'
on 'CanvasRenderingContext2D': No function was found that matched the signature
provided.. | 10 PASS ctx.setFillColor(0, 0, 0) threw exception TypeError: Failed to execute 'set
FillColor' on 'CanvasRenderingContext2D': Valid arities are: [1, 2, 4, 5], but 3
arguments provided.. |
11 PASS ctx.setFillColor(0, 0, 0, 0) is undefined | 11 PASS ctx.setFillColor(0, 0, 0, 0) is undefined |
12 PASS ctx.setFillColor(0, 0, 0, 0, 0) is undefined | 12 PASS ctx.setFillColor(0, 0, 0, 0, 0) is undefined |
13 FAIL ctx.setFillColor(0, 0, 0, 0, 0, 0) should throw "TypeError: Failed to execu
te 'setFillColor' on 'CanvasRenderingContext2D': No function was found that matc
hed the signature provided.". Threw exception TypeError: Failed to execute 'setF
illColor' on 'CanvasRenderingContext2D': No function was found that matched the
signature provided.. | 13 PASS ctx.setFillColor(0, 0, 0, 0, 0, 0) threw exception TypeError: Failed to exe
cute 'setFillColor' 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 |
OLD | NEW |