content/canvas/crashtests/729116.html
author Bas Schouten <bschouten@mozilla.com>
Tue, 28 Feb 2012 04:03:24 +0100
changeset 90774 31a715f4716476c30cb66551910e64096d94385b
permissions -rw-r--r--
Bug 729116 - Crashtest: Test if we deal with changing a canvas to a very large size. r=joe

<html>
<script language=javascript>

function draw() {
  var canv = document.getElementById("canv");
  var ctx = canv.getContext("2d");
  try {
    canv.width = 50000;
  } catch (e) { }

  ctx.clearRect(0, 0, 10, 10);
}

</script>
<body onload="draw()">
<canvas id="canv" width="5" height="5"></canvas>
</body>
</html>