bug 700022 - pt 1 - reftests to check that graphite is working. r=jdaggett

This commit is contained in:
Jonathan Kew 2013-02-22 13:36:00 +00:00
parent 696d7f50c0
commit c73913a252
11 changed files with 178 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
@font-face {
font-family: PigLatin;
src: url(../fonts/sil/PigLatin-nographite.ttf);
}
body {
font: 34px PigLatin;
width: 5em;
line-height: 2em;
}
</style>
</head>
<body>
<p>
Igpay
</p>
</body>
</html>

View File

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
@font-face {
font-family: PigLatin;
src: url(../fonts/sil/PigLatinBenchmark_v3.ttf);
}
body {
font: 34px PigLatin;
width: 5em;
line-height: 2em;
}
</style>
</head>
<body>
<p>
Pig
</p>
</body>
</html>

View File

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
@font-face {
font-family: PigLatin;
src: url(../fonts/sil/PigLatin-nographite.ttf);
}
body {
font: 34px PigLatin;
width: 5em;
line-height: 2em;
}
</style>
</head>
<body>
<p>
Igpay<br>Atinlay
</p>
</body>
</html>

View File

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
@font-face {
font-family: PigLatin;
src: url(../fonts/sil/PigLatinBenchmark_v3.ttf);
}
body {
font: 34px PigLatin;
width: 5em;
line-height: 2em;
}
</style>
</head>
<body>
<p>
Pig Latin
</p>
</body>
</html>

View File

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
@font-face {
font-family: padauk;
src: url(../fonts/sil/Padauk.ttf);
}
body {
font: 34px padauk;
}
</style>
</head>
<body>
<p lang="my"><!-- default (Burmese) behavior of Padauk -->
ပှၤလၢအတလဲၤဘၣ်ဝဲလၢ ပှၤတတီတလိၤဘၣ်အ ကူၣ်ထီၣ်ဖးလီၤတၢ်အပူၤ, ဒီးတဆၢထၢၣ်ဘၣ်ဝဲလၢ ပှၤမၤတၢ်ဒဲးဘးအကျဲ, ဒီးတဆ့ၣ်နီၤဘၣ်ဝဲလၢ ပှၤ ဒုၣ်ဒွဲၣ်တၢ်အလီၢ်ဆ့ၣ်နီၤဘၣ်န့ၣ် ဘၣ်ဆိၣ်ဂ့ၤဝဲလီၤ.
</p>
</body>
</html>

View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
@font-face {
font-family: padauk;
src: url(../fonts/sil/Padauk.ttf);
}
body {
font: 34px padauk;
}
</style>
</head>
<body>
<p lang="ksw"><!-- check that changing language affects the rendering:
this modifies the shape of a couple of lower diacritics -->
ပှၤလၢအတလဲၤဘၣ်ဝဲလၢ ပှၤတတီတလိၤဘၣ်အ ကူၣ်ထီၣ်ဖးလီၤတၢ်အပူၤ, ဒီးတဆၢထၢၣ်ဘၣ်ဝဲလၢ ပှၤမၤတၢ်ဒဲးဘးအကျဲ, ဒီးတဆ့ၣ်နီၤဘၣ်ဝဲလၢ ပှၤ ဒုၣ်ဒွဲၣ်တၢ်အလီၢ်ဆ့ၣ်နီၤဘၣ်န့ၣ် ဘၣ်ဆိၣ်ဂ့ၤဝဲလီၤ.
</p>
</body>
</html>

View File

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
@font-face {
font-family: padauk;
src: url(../fonts/sil/Padauk.ttf);
}
body {
font: 34px padauk;
-moz-font-feature-settings: "kdot" on;
font-feature-settings: "kdot" on;
/* check that setting an optional graphite feature affects rendering:
* this adds "dots" to the ends of a number of curved strokes
*/
}
</style>
</head>
<body>
<p lang="my">
ပှၤလၢအတလဲၤဘၣ်ဝဲလၢ ပှၤတတီတလိၤဘၣ်အ ကူၣ်ထီၣ်ဖးလီၤတၢ်အပူၤ, ဒီးတဆၢထၢၣ်ဘၣ်ဝဲလၢ ပှၤမၤတၢ်ဒဲးဘးအကျဲ, ဒီးတဆ့ၣ်နီၤဘၣ်ဝဲလၢ ပှၤ ဒုၣ်ဒွဲၣ်တၢ်အလီၢ်ဆ့ၣ်နီၤဘၣ်န့ၣ် ဘၣ်ဆိၣ်ဂ့ၤဝဲလီၤ.
</p>
</body>
</html>

View File

@ -170,14 +170,27 @@ skip-if(B2G) == 726392-3.html 726392-3-ref.html
!= emoji-01.html emoji-01-notref.html
!= emoji-02.html emoji-02-notref.html
# check that Graphite shaping (bug 631479) is working
pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == graphite-01.html graphite-01-ref.html
# Test 02 (using Pig Latin) is fuzzy on Win7 because glyph positioning is not guaranteed to match exactly
# between a sequence of simple glyphs rendered individually, and the same sequence treated as a single cluster.
fuzzy-if(winWidget,43,220) pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == graphite-02.html graphite-02-ref.html
pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) != graphite-03a.html graphite-03-notref.html
pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) != graphite-03b.html graphite-03-notref.html
pref(gfx.font_rendering.graphite.enabled,false) HTTP(..) != graphite-01.html graphite-01-ref.html
pref(gfx.font_rendering.graphite.enabled,false) HTTP(..) != graphite-02.html graphite-02-ref.html
# test 03a (lang setting in Padauk font) now works in opentype/harfbuzz as well, but not on Windows (using Uniscribe/DirectWrite)
fails-if(winWidget) pref(gfx.font_rendering.graphite.enabled,false) HTTP(..) != graphite-03a.html graphite-03-notref.html
pref(gfx.font_rendering.graphite.enabled,false) HTTP(..) == graphite-03b.html graphite-03-notref.html
# tests to compare graphite to opentype (will trivially pass when graphite not enabled)
HTTP(..) == graphite-05-ot-only.html graphite-05-ref.html
skip-if(B2G) HTTP(..) != graphite-05-ot-only.html graphite-05-fail.html
HTTP(..) != graphite-05-ot-only.html graphite-05-fail.html
HTTP(..) == graphite-05-simple.html graphite-05-ref.html
HTTP(..) == graphite-05-multipass.html graphite-05-ref.html
skip-if(B2G) HTTP(..) == graphite-05-lang.html graphite-05-ref.html
skip-if(B2G) HTTP(..) == graphite-05-badlang.html graphite-05-ref.html
skip-if(B2G) HTTP(..) == graphite-05-feat.html graphite-05-ref.html
HTTP(..) == graphite-05-lang.html graphite-05-ref.html
HTTP(..) == graphite-05-badlang.html graphite-05-ref.html
HTTP(..) == graphite-05-feat.html graphite-05-ref.html
# comparing composed and decomposed characters that should render identically
# under both OpenType and Graphite shaping