bug 1011187 - reftest for font-variant:small-caps in canvas. r=roc

This commit is contained in:
Jonathan Kew 2014-05-27 10:50:11 +01:00
parent 5088690334
commit 46c72f744a
3 changed files with 39 additions and 0 deletions

View File

@ -48,6 +48,7 @@ fuzzy-if(azureSkiaGL,10,400) == text-not-in-doc-test.html text-not-in-doc-ref.ht
skip-if(B2G) != text-font-lang.html text-font-lang-notref.html
== text-measure.html text-measure-ref.html
== text-small-caps-1.html text-small-caps-1-ref.html
random-if(!d2d) != text-subpixel-1.html text-subpixel-1-ref.html

View File

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
</style>
</head>
<body>
<canvas id="canvas1" width="400" height="400"></canvas>
<script type="text/javascript">
var ctx = document.getElementById('canvas1').getContext('2d');
ctx.font = "40px arial, helvetica, roboto, droid sans, sans-serif";
ctx.fillText("lowercase", 50, 50);
ctx.font = "32px arial, helvetica, roboto, droid sans, sans-serif";
ctx.fillText("SMALLCAPS", 50, 100);
ctx.font = "40px arial, helvetica, roboto, droid sans, sans-serif";
ctx.fillText("CAPITALS", 50, 150);
</script>
</body>

View File

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
</style>
</head>
<body>
<canvas id="canvas1" width="400" height="400"></canvas>
<script type="text/javascript">
var ctx = document.getElementById('canvas1').getContext('2d');
ctx.font = "40px arial, helvetica, roboto, droid sans, sans-serif";
ctx.fillText("lowercase", 50, 50);
ctx.font = "small-caps 40px arial, helvetica, roboto, droid sans, sans-serif";
ctx.fillText("smallcaps", 50, 100);
ctx.font = "small-caps 40px arial, helvetica, roboto, droid sans, sans-serif";
ctx.fillText("CAPITALS", 50, 150);
</script>
</body>