Bug 698652: Test that minimum font size is ignored in canvas. r=dbaron

This commit is contained in:
Chris Jones 2012-01-27 22:00:36 -08:00
parent 9d1717a44d
commit 9eed9ad660
3 changed files with 32 additions and 0 deletions

View File

@ -45,6 +45,8 @@ fails-if(Android) != text-font-lang.html text-font-lang-notref.html
== text-measure.html text-measure-ref.html
pref(font.minimum-size.x-western,48) != text-ignore-min-size.html text-ignore-min-size-ref.html
== strokeText-path.html strokeText-path-ref.html
# azure quartz uses CGDrawLinearGradient instead of DrawShading

View File

@ -0,0 +1,15 @@
<html lang="en">
<script>
function load() {
var ctx = document.getElementById("canvas").getContext("2d");
ctx.font = "bold 48px sans-serif";
ctx.scale(4, 4);
var str = "HeHeHeHe";
ctx.fillText(str, 0, 48);
}
</script>
<body onload="load();">
<canvas id="canvas" width="400" height="200"></canvas>
</body>
</html>

View File

@ -0,0 +1,15 @@
<html lang="en">
<script>
function load() {
var ctx = document.getElementById("canvas").getContext("2d");
ctx.font = "bold 12px sans-serif";
ctx.scale(4, 4);
var str = "HeHeHeHe";
ctx.fillText(str, 0, 48);
}
</script>
<body onload="load();">
<canvas id="canvas" width="400" height="200"></canvas>
</body>
</html>