     finishTest();
      }
    });
  }, 0);
}

if (!window.OffscreenCanvas) {
  testPassed("No OffscreenCanvas support");
  finishTest();
} else if (!new OffscreenCanvas(10, 20).getContext("webgl").commit) {
  testPassed("commit() not supported");
  finishTest();
} else {
  testResizeOnNewOffscreenCanvas();
  testResizeOnTransferredOffscreenCanvas();
}
</script>
</body>
</html>
