blob: 2f7da1708fe0b3f201e5c7aa78d12baee65b94b1 [file] [log] [blame]
Test the behavior of CanvasRenderingContext2D.drawImageFromRect() when called with different numbers of arguments.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS ctx.drawImageFromRect() threw exception TypeError: Not enough arguments.
PASS ctx.drawImageFromRect(imageElement) is undefined
PASS ctx.drawImageFromRect(imageElement, 0) is undefined
PASS ctx.drawImageFromRect(imageElement, 0, 0) is undefined
PASS ctx.drawImageFromRect(imageElement, 0, 0, 0) is undefined
PASS ctx.drawImageFromRect(imageElement, 0, 0, 0, 0) is undefined
PASS ctx.drawImageFromRect(imageElement, 0, 0, 0, 0, 0) is undefined
PASS ctx.drawImageFromRect(imageElement, 0, 0, 0, 0, 0, 0) is undefined
PASS ctx.drawImageFromRect(imageElement, 0, 0, 0, 0, 0, 0, 0) is undefined
PASS ctx.drawImageFromRect(imageElement, 0, 0, 0, 0, 0, 0, 0, 0) is undefined
PASS ctx.drawImageFromRect(imageElement, 0, 0, 0, 0, 0, 0, 0, 0, 0) is undefined
PASS ctx.drawImageFromRect(imageElement, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) is undefined
PASS ctx.drawImageFromRect(imageElement, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) is undefined
PASS ctx.drawImageFromRect(imageElement, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) is undefined
PASS successfullyParsed is true
TEST COMPLETE