blob: c1ba5d5dc8645f63b05f186be79fa3e28a2f4fcf [file] [log] [blame]
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/canvas-tests.js"></script>
<link rel="help" href="https://html.spec.whatwg.org/#dom-offscreencanvas">
<script>
test(function() {
let offscreenCanvas = new OffscreenCanvas(100, 100);
assert_throws_dom('InvalidStateError', () => { offscreenCanvas.transferToImageBitmap() });
}, "Test transferToImageBitmap.");
</script>