blob: 9e960bf80a9eb79688e171bcacf3b097cf14a788 [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.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>