https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 7ccdbbe93ecf52b16e9a0c54d09a44890a3d1b9b authored by James Graham on 23 August 2018, 17:02:11 UTC
Update manifest before tests
Tip revision: 7ccdbbe
2d.pattern.repeat.unrecognised.html
<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. -->
<title>OffscreenCanvas test: 2d.pattern.repeat.unrecognised</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/canvas-tests.js"></script>

<h1>2d.pattern.repeat.unrecognised</h1>
<p class="desc"></p>


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

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

assert_throws("SYNTAX_ERR", function() { ctx.createPattern(offscreenCanvas, "invalid"); });

t.done();

});
</script>
back to top