зеркало из https://github.com/mozilla/gecko-dev.git
bug 700022 - pt 2 - reftests for lang-tag handling in graphite shaper. r=jdaggett
This commit is contained in:
Родитель
8e9aff2dd7
Коммит
db5aabf340
|
@ -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 -->
|
||||
۰۱۲۳۴۵۶۷۸۹
|
||||
</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 -->
|
||||
۰۱۲۳۴۵۶۷۸۹
|
||||
</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 -->
|
||||
۰۱۲۳۴۵۶۷۸۹
|
||||
</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 -->
|
||||
۰۱۲۳۴۵۶۷۸۹
|
||||
</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 -->
|
||||
۰۱۲۳۴۵۶۷۸۹
|
||||
</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 -->
|
||||
۰۱۲۳۴۵۶۷۸۹
|
||||
</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
|
||||
|
|
Загрузка…
Ссылка в новой задаче