| OLD | NEW |
| (Empty) |
| 1 Test the behavior of CanvasRenderingContext2D.drawImage() when called with diffe
rent numbers of arguments. | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 PASS ctx.drawImage() threw exception TypeError: Failed to execute 'drawImage' on
'CanvasRenderingContext2D': 3 arguments required, but only 0 present.. | |
| 7 PASS ctx.drawImage(imageElement) threw exception TypeError: Failed to execute 'd
rawImage' on 'CanvasRenderingContext2D': 3 arguments required, but only 1 presen
t.. | |
| 8 PASS ctx.drawImage(imageElement, 0) threw exception TypeError: Failed to execute
'drawImage' on 'CanvasRenderingContext2D': 3 arguments required, but only 2 pre
sent.. | |
| 9 PASS ctx.drawImage(imageElement, 0, 0) is undefined | |
| 10 PASS ctx.drawImage(imageElement, 0, 0, 0) threw exception TypeError: Failed to e
xecute 'drawImage' on 'CanvasRenderingContext2D': Valid arities are: [3, 5, 9],
but 4 arguments provided.. | |
| 11 PASS ctx.drawImage(imageElement, 0, 0, 0, 0) is undefined | |
| 12 PASS ctx.drawImage(imageElement, 0, 0, 0, 0, 0) threw exception TypeError: Faile
d to execute 'drawImage' on 'CanvasRenderingContext2D': Valid arities are: [3, 5
, 9], but 6 arguments provided.. | |
| 13 PASS ctx.drawImage(imageElement, 0, 0, 0, 0, 0, 0) threw exception TypeError: Fa
iled to execute 'drawImage' on 'CanvasRenderingContext2D': Valid arities are: [3
, 5, 9], but 7 arguments provided.. | |
| 14 PASS ctx.drawImage(imageElement, 0, 0, 0, 0, 0, 0, 0) threw exception TypeError:
Failed to execute 'drawImage' on 'CanvasRenderingContext2D': Valid arities are:
[3, 5, 9], but 8 arguments provided.. | |
| 15 PASS ctx.drawImage(imageElement, 0, 0, 0, 0, 0, 0, 0, 0) is undefined | |
| 16 PASS ctx.drawImage(imageElement, 0, 0, 0, 0, 0, 0, 0, 0, 0) is undefined | |
| 17 PASS ctx.drawImage(imageElement, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) is undefined | |
| 18 PASS ctx.drawImage(canvasElement) threw exception TypeError: Failed to execute '
drawImage' on 'CanvasRenderingContext2D': 3 arguments required, but only 1 prese
nt.. | |
| 19 PASS ctx.drawImage(canvasElement, 0) threw exception TypeError: Failed to execut
e 'drawImage' on 'CanvasRenderingContext2D': 3 arguments required, but only 2 pr
esent.. | |
| 20 PASS ctx.drawImage(canvasElement, 0, 0) is undefined | |
| 21 PASS ctx.drawImage(canvasElement, 0, 0, 0) threw exception TypeError: Failed to
execute 'drawImage' on 'CanvasRenderingContext2D': Valid arities are: [3, 5, 9],
but 4 arguments provided.. | |
| 22 PASS ctx.drawImage(canvasElement, 0, 0, 0, 0) is undefined | |
| 23 PASS ctx.drawImage(canvasElement, 0, 0, 0, 0, 0) threw exception TypeError: Fail
ed to execute 'drawImage' on 'CanvasRenderingContext2D': Valid arities are: [3,
5, 9], but 6 arguments provided.. | |
| 24 PASS ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0) threw exception TypeError: F
ailed to execute 'drawImage' on 'CanvasRenderingContext2D': Valid arities are: [
3, 5, 9], but 7 arguments provided.. | |
| 25 PASS ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0) threw exception TypeError
: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': Valid arities are
: [3, 5, 9], but 8 arguments provided.. | |
| 26 PASS ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0, 0) is undefined | |
| 27 PASS ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0, 0, 0) is undefined | |
| 28 PASS ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) is undefined | |
| 29 PASS successfullyParsed is true | |
| 30 | |
| 31 TEST COMPLETE | |
| 32 | |
| OLD | NEW |