(t) {
    var canvas = document.createElement("canvas");
    canvas.width = width;
    canvas.height = height;
    var ctx = canvas.getContext('2d');
    ctx.fillStyle = '#0f0';
    ctx.fillRect(0, 0, width, height);
    createImageBitmap(canvas).then(t.step_func(function(image) {
        consumeImageBitmap(image, t);
    }));
}, 'Test that createImageBitmap from a bitmaprenderer canvas produces correct result');

async_test(function(t) {
    var canvas = document.createElement("canvas");
    canvas.width =