blob: cbe19275721ffc7196002de5184282c77ae040c2 [file] [log] [blame]
Test the handling of invalid arguments in canvas toBlob().
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS canvas.toBlob(); threw exception TypeError: Failed to execute 'toBlob' on 'HTMLCanvasElement': 1 argument required, but only 0 present..
PASS canvas.toBlob(null); threw exception TypeError: Failed to execute 'toBlob' on 'HTMLCanvasElement': The callback provided as parameter 1 is not a function..
PASS canvas.toBlob(undefined); threw exception TypeError: Failed to execute 'toBlob' on 'HTMLCanvasElement': The callback provided as parameter 1 is not a function..
PASS canvas.toBlob(function() {}); did not throw exception.
PASS canvas.toBlob(function(blob) {}, 'image/jpeg', 500) did not throw exception.
PASS successfullyParsed is true
TEST COMPLETE