blob: b3a89baffe8a66eec9fb75f8e2c2400966c1b8d0 [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);
let imageBitmap = offscreenCanvas.transferToImageBitmap();
assert_equals(imageBitmap, null);
}, "Test transferToImageBitmap.");
</script>