2d.imageData.get.zero | |
getImageData() throws INDEX_SIZE_ERR if size is zero | |
FAIL getImageData() throws INDEX_SIZE_ERR if size is zero assert_throws: function "function () { ctx.getImageData(1, 1, 10, 0); }" threw object "TypeError: null is not an object (evaluating 'ctx.getImageData')" that is not a DOMException INDEX_SIZE_ERR: property "code" is equal to undefined, expected 1 | |