blob: 0b61a343b9b2769503d9d612bf8acfb39005d8a4 [file] [log] [blame]
<!DOCTYPE html>
<script src="../../resources/js-test.js"></script>
<script>
description("Tests that the constructor of the OffscreenCanvas can be called on the main thread");
var aCanvas = new OffscreenCanvas(50, 50);
shouldBe("aCanvas.width", "50");
shouldBe("aCanvas.height", "50");
aCanvas.width = 100;
aCanvas.height = 100;
shouldBe("aCanvas.width", "100");
shouldBe("aCanvas.height", "100");
</script>