content/canvas/crashtests/0px-size-font-667225.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/canvas/crashtests/0px-size-font-667225.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,19 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml" >
     1.5 +<script language=javascript>
     1.6 +
     1.7 +function draw() {
     1.8 +  var canv = document.getElementById("canv");
     1.9 +  var ctx = canv.getContext("2d");
    1.10 +
    1.11 +  ctx.fillStyle = "red";
    1.12 +  // 0 size font shouldn't crash!
    1.13 +  ctx.font = "0px Arial";
    1.14 +  ctx.fillText("A", 0, 0);
    1.15 +  document.documentElement.className = "";
    1.16 +}
    1.17 +
    1.18 +</script>
    1.19 +<body onload="draw()">
    1.20 +<canvas id="canv" width="5" height="5"></canvas>
    1.21 +</body>
    1.22 +</html>

mercurial