bug 700022 - pt 2 - reftests for lang-tag handling in graphite shaper. r=jdaggett

This commit is contained in:
Jonathan Kew 2013-02-22 13:36:02 +00:00
Родитель 8e9aff2dd7
Коммит db5aabf340
7 изменённых файлов: 125 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,19 @@
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<style type="text/css">
@font-face {
font-family: schz-gr;
src: url("../fonts/sil/Scheherazade-R 2012-07-03c.ttf");
}
body {
font-family: schz-gr;
font-size: 40px;
}
</style>
</head>
<body lang="fa">
<!-- Persian (Farsi) should be the same as English-tagged -->
&#x6f0;&#x6f1;&#x6f2;&#x6f3;&#x6f4;&#x6f5;&#x6f6;&#x6f7;&#x6f8;&#x6f9;
</body>
</html>

Просмотреть файл

@ -0,0 +1,20 @@
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<style type="text/css">
@font-face {
font-family: schz-gr;
src: url("../fonts/sil/Scheherazade-R 2012-07-03c.ttf");
}
body {
font-family: schz-gr;
font-size: 40px;
}
</style>
</head>
<body lang="en">
<!-- for testing Graphite language support we'll use the Eastern Arabic-Indic digits;
default rendering will have the Persian forms -->
&#x6f0;&#x6f1;&#x6f2;&#x6f3;&#x6f4;&#x6f5;&#x6f6;&#x6f7;&#x6f8;&#x6f9;
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<style type="text/css">
@font-face {
font-family: schz-gr;
src: url("../fonts/sil/Scheherazade-R 2012-07-03c.ttf");
}
body {
font-family: schz-gr;
font-size: 40px;
}
</style>
</head>
<body lang="sd">
<!-- Sindhi - digits 6 and 7 have different forms -->
&#x6f0;&#x6f1;&#x6f2;&#x6f3;&#x6f4;&#x6f5;&#x6f6;&#x6f7;&#x6f8;&#x6f9;
</body>
</html>

Просмотреть файл

@ -0,0 +1,20 @@
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<style type="text/css">
@font-face {
font-family: schz-gr;
src: url("../fonts/sil/Scheherazade-R 2012-07-03c.ttf");
}
body {
font-family: schz-gr;
font-size: 40px;
}
</style>
</head>
<body lang="snd">
<!-- Sindhi incorrectly tagged with iso-639-3 code instead of bcp47/iso-639-1;
rendering should therefore match the default "en", NOT the correctly-tagged "sd" version -->
&#x6f0;&#x6f1;&#x6f2;&#x6f3;&#x6f4;&#x6f5;&#x6f6;&#x6f7;&#x6f8;&#x6f9;
</body>
</html>

Просмотреть файл

@ -0,0 +1,20 @@
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<style type="text/css">
@font-face {
font-family: schz-gr;
src: url("../fonts/sil/Scheherazade-R 2012-07-03c.ttf");
}
body {
font-family: schz-gr;
font-size: 40px;
}
</style>
</head>
<body lang="ur">
<!-- in Urdu, the digit 4 should differ from Sindhi,
and 6 and 7 also differ from Persian -->
&#x6f0;&#x6f1;&#x6f2;&#x6f3;&#x6f4;&#x6f5;&#x6f6;&#x6f7;&#x6f8;&#x6f9;
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<style type="text/css">
@font-face {
font-family: schz-gr;
src: url("../fonts/sil/Scheherazade-R 2012-07-03c.ttf");
}
body {
font-family: schz-gr;
font-size: 40px;
}
</style>
</head>
<body lang="urd">
<!-- incorrectly-tagged Urdu should match the default rendering -->
&#x6f0;&#x6f1;&#x6f2;&#x6f3;&#x6f4;&#x6f5;&#x6f6;&#x6f7;&#x6f8;&#x6f9;
</body>
</html>

Просмотреть файл

@ -183,6 +183,14 @@ pref(gfx.font_rendering.graphite.enabled,false) HTTP(..) != graphite-02.html gra
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 for graphite rendering with valid and invalid lang tags
pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == graphite-04-fa.html graphite-04-ref.html
pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) != graphite-04-sd.html graphite-04-ref.html
pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == graphite-04-snd.html graphite-04-ref.html
pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) != graphite-04-ur.html graphite-04-ref.html
pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == graphite-04-urd.html graphite-04-ref.html
pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) != graphite-04-sd.html graphite-04-ur.html
# tests to compare graphite to opentype (will trivially pass when graphite not enabled)
HTTP(..) == graphite-05-ot-only.html graphite-05-ref.html
HTTP(..) != graphite-05-ot-only.html graphite-05-fail.html