haikuwebkit/LayoutTests/fast/canvas/canvas-toDataURL-crash.html

12 lines
395 B
HTML

<p id="console"></p>
<p>Calling toDataURL() on a huge canvas shouldn't crash. If the text above is "PASS", the test passed.</p>
<canvas id="foo" width="65536" height="65536"></canvas>
<script>
var canvas = document.getElementById('foo');
var url = canvas.toDataURL();
var p = document.getElementById('console');
p.innerHTML = "PASS";
if (window.testRunner)
testRunner.dumpAsText();
</script>