t-utils.js"></script>
<script src="../../js/tests/canvas-tests-utils.js"></script>
</head>
<body>
<div id="description"></div>
<div id="console"></div>
<script>
"use strict";
description("This test ensures that the OffscreenCanvas context returns the correct image size after resizing and calling commit().");

function testResizeOnNewOffscreenCanvas() {
  var canvas = new OffscreenCanvas(10, 20);
  canvas.getContext("webgl");
  canvas.width = 30;
  canvas.height = 40;
  assertWidthAndHeight(canvas, "canvas",