23 lines
585 B
HTML
23 lines
585 B
HTML
<!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>
|
|
|