https://github.com/web-platform-tests/wpt
Raw File
Tip revision: cc17d0d2c326ae76ee0eedbe70dd1840cd96a1ca authored by Jake Archibald on 22 May 2018, 13:00:43 UTC
Returning a cached ranged response should now give a network error
Tip revision: cc17d0d
2d.transformation.transform.identity.worker.js
// DO NOT EDIT! This test has been generated by tools/gentest.py.
// OffscreenCanvas test in a worker:2d.transformation.transform.identity
// Description:transform() with the identity matrix does nothing
// Note:

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

var t = async_test("transform() with the identity matrix does nothing");
t.step(function() {

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

ctx.fillStyle = '#f00';
ctx.fillRect(0, 0, 100, 50);
ctx.transform(1,0, 0,1, 0,0);
ctx.fillStyle = '#0f0';
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