summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/canvas/offscreen/manual/the-offscreen-canvas/offscreencanvas.transfer.to.imagebitmap.nocrash.html
blob: 09a388ed35729b2741c66d9b8f3f13b8d68ea668 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<body>
    <p>Tests that an ImageBitmap in Offscreen without content does not crash.</p>

<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>

async_test(function(t) {
  var v1 = document.createElement("canvas");
  var v2 = v1.transferControlToOffscreen();
  var v3 = v2.getContext("bitmaprenderer");
  v2.width = 67;
  t.done();
});
</script>