r dstCanvas = document.createElement('canvas');
        dstCanvas.width = width;
        dstCanvas.height = height;
        var dstCtx = dstCanvas.getContext('2d');
        dstCtx.drawImage(canvas, 0, 0);
        testCanvas(dstCtx, 5, 5, 0, 0, 0, 0);
    }));
}, 'Test that createImageBitmap on a bitmaprenderer canvas that consumes null produces correct result');
</script>
