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