summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/canvas/offscreen/manual/the-offscreen-canvas/offscreencanvas.transfer.lowlatency.nocrash.html
blob: 1960841564773faeaf6a21d56ca4f46e3547172b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<title>Transfer Low-Latency Canvas</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/html/canvas/resources/canvas-tests.js"></script>
<body></body>

<script>
test(function(t) {
  var ctx = document.createElement("canvas").getContext('2d', {desynchronized:true});
  assert_throws_dom("InvalidStateError", () => { ctx.canvas.transferControlToOffscreen(); });
}, "Tests that transferring a low latency canvas does not cause a crash. See crbug.com/1255153");
</script>