OLD | NEW |
(Empty) | |
| 1 Test the handling of invalid arguments in canvas toBlob(). |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 PASS canvas.toBlob(); threw exception TypeError: Failed to execute 'toBlob' on '
HTMLCanvasElement': 1 argument required, but only 0 present.. |
| 7 PASS canvas.toBlob(null); threw exception TypeError: Failed to execute 'toBlob'
on 'HTMLCanvasElement': The callback provided as parameter 1 is not a function.. |
| 8 PASS canvas.toBlob(undefined); threw exception TypeError: Failed to execute 'toB
lob' on 'HTMLCanvasElement': The callback provided as parameter 1 is not a funct
ion.. |
| 9 PASS canvas.toBlob(function() {}); did not throw exception. |
| 10 PASS canvas.toBlob(function(blob) {}, 'image/jpeg', 500) did not throw exception
. |
| 11 PASS successfullyParsed is true |
| 12 |
| 13 TEST COMPLETE |
| 14 |
OLD | NEW |