https://github.com/web-platform-tests/wpt
Raw File
Tip revision: c5719e00d4a7c1e336ae3f047ed5381c159c840d authored by James Graham on 14 March 2018, 15:05:06 UTC
Exit wptrunner with an error status if no tests ran
Tip revision: c5719e0
2d.composite.operation.unrecognised.worker.js
// DO NOT EDIT! This test has been generated by tools/gentest.py.
// OffscreenCanvas test in a worker:2d.composite.operation.unrecognised
// 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');

ctx.globalCompositeOperation = 'xor';
ctx.globalCompositeOperation = 'nonexistent';
_assertSame(ctx.globalCompositeOperation, 'xor', "ctx.globalCompositeOperation", "'xor'");

t.done();

});
done();
back to top