blob: 14e2e6c2baa78e74cda840ce724b68f7cca2b83d [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.testRunner)
testRunner.dumpAsText();
var c = document.getElementById("c");
function resize() {
c.width = "5000";
c.height = "10000";
}
if (window.testRunner) {
testRunner.displayAndTrackRepaints(); // 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>