https://github.com/web-platform-tests/wpt
Raw File
Tip revision: df89fd5a317a9d4ab43156a4e8f2c161172fcbbd authored by Darren Shen on 05 April 2018, 02:55:33 UTC
[css-typed-om] Add support for grid properties.
Tip revision: df89fd5
2d.fillStyle.parse.hex8.worker.js
// DO NOT EDIT! This test has been generated by tools/gentest.py.
// OffscreenCanvas test in a worker:2d.fillStyle.parse.hex8
// Description:
// Note:<p class="notes">

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');


ctx.fillStyle = '#f00';
ctx.fillStyle = '#00ff00ff';
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