blob: 838d8f845ecbd3f30109a3e81fe673a02e7bd181 [file] [log] [blame]
w3c: |
<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. -->
<title>OffscreenCanvas test: %(name)s</title>%(timeout)s
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/2dcontext/resources/canvas-tests.js"></script>
<h1>%(name)s</h1>
<p class="desc">%(desc)s</p>
%(notes)s
<script>
var t = async_test("%(escaped_desc)s");
t.step(function() {
var offscreenCanvas = new OffscreenCanvas(100, 50);
var ctx = offscreenCanvas.getContext('2d');
%(code)s
t.done();
});
</script>
w3cworker: |
// DO NOT EDIT! This test has been generated by tools/gentest.py.
// OffscreenCanvas test in a worker:%(name)s
// Description:%(desc)s
// Note:%(notes)s
importScripts("/resources/testharness.js");
importScripts("/2dcontext/resources/canvas-tests.js");
var t = async_test("%(escaped_desc)s");
t.step(function() {
var offscreenCanvas = new OffscreenCanvas(100, 50);
var ctx = offscreenCanvas.getContext('2d');
%(code)s
t.done();
});
done();