blob: 9573cbf5931a9c034ef25fa184e795db1d890ef5 [file] [log] [blame]
<!DOCTYPE html>
<canvas id="c" width=100 height=100></canvas>
<!-- Tests that resizing a canvas to very large dimensions after a composite does not crash -->
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
var c = document.getElementById("c");
function resize() {
c.width = "5000";
c.height = "10000";
}
if (window.layoutTestController) {
layoutTestController.display(); // Force a composite at normal width/height to ensure we have a compositing layer for the canvas.
resize();
} else
window.setTimeout(resize, 0);
document.write("PASS");
</script>