https://github.com/web-platform-tests/wpt
Raw File
Tip revision: e2dbf6dc2f45ee245eac9dcbf4deb424c01c9dd1 authored by David Storey on 03 April 2018, 22:37:31 UTC
Add SVGTransformable to list of removed interfaces
Tip revision: e2dbf6d
2d.gradient.interpolate.solid.worker.js
// DO NOT EDIT! This test has been generated by tools/gentest.py.
// OffscreenCanvas test in a worker:2d.gradient.interpolate.solid
// Description:
// Note:

importScripts("/resources/testharness.js");
importScripts("/common/canvas-tests.js");

var t = async_test("");
t.step(function() {

var offscreenCanvas = new OffscreenCanvas(100, 50);
var ctx = offscreenCanvas.getContext('2d');

var g = ctx.createLinearGradient(0, 0, 100, 0);
g.addColorStop(0, '#0f0');
g.addColorStop(1, '#0f0');
ctx.fillStyle = g;
ctx.fillRect(0, 0, 100, 50);
_assertPixel(offscreenCanvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255");

t.done();

});
done();
back to top