bug 833297 - reftest for preserving clusters across font-shaping boundary with graphite. r=jdaggett

This commit is contained in:
Jonathan Kew 2013-01-23 16:41:34 +00:00
parent 4b78b3e922
commit a7a92fe4cd
3 changed files with 63 additions and 0 deletions

View File

@ -113,6 +113,7 @@ HTTP(..) != synthetic-bold-metrics-01.html synthetic-bold-metrics-01-notref.html
skip-if(B2G) HTTP(..) == wordbreak-7a.html wordbreak-7a-ref.html skip-if(B2G) HTTP(..) == wordbreak-7a.html wordbreak-7a-ref.html
fails HTTP(..) == wordbreak-7b.html wordbreak-7b-ref.html # bug 479829 fails HTTP(..) == wordbreak-7b.html wordbreak-7b-ref.html # bug 479829
== wordbreak-8.html wordbreak-8-ref.html == wordbreak-8.html wordbreak-8-ref.html
pref(gfx.font_rendering.graphite.enabled,true) HTTP(..) == wordbreak-9.html wordbreak-9-ref.html
== wordwrap-01.html wordwrap-01-ref.html == wordwrap-01.html wordwrap-01-ref.html
HTTP(..) == wordwrap-02.html wordwrap-02-ref.html HTTP(..) == wordwrap-02.html wordwrap-02-ref.html
skip-if(B2G) HTTP(..) == wordwrap-03.html wordwrap-03-ref.html skip-if(B2G) HTTP(..) == wordwrap-03.html wordwrap-03-ref.html

View File

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
@font-face {
font-family: latin;
src: url("../fonts/sil/GenR102.ttf");
}
@font-face {
font-family: arabic;
src: url("../fonts/sil/Scheherazade-R 2012-07-03c.ttf");
}
body {
font-family: latin, arabic, sans-serif;
font-size: 24px;
line-height: 2em;
}
</style>
<title>Test - word-break:break-all across font fallback</title>
</head>
<body>
<!-- the arabic diacritics here will fall back to font 'arabic', which
is a graphite-enabled arabic font, and be shaped separately;
nevertheless, they must remain clustered with the preceding letters,
no additional line-breaks are allowed before them (bug 833297) -->
<div>f<br>o&#x064c;<br>o&#x0650;<br>b<br>a&#x0654;<br>r</div>
</body>
</html>

View File

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
@font-face {
font-family: latin;
src: url("../fonts/sil/GenR102.ttf");
}
@font-face {
font-family: arabic;
src: url("../fonts/sil/Scheherazade-R 2012-07-03c.ttf");
}
body {
font-family: latin, arabic, sans-serif;
font-size: 24px;
line-height: 2em;
}
div {
width: 0px;
word-break: break-all;
}
</style>
<title>Test - word-break:break-all across font fallback</title>
</head>
<body>
<!-- the arabic diacritics here will fall back to font 'arabic', which
is a graphite-enabled arabic font, and be shaped separately;
nevertheless, they must remain clustered with the preceding letters,
no additional line-breaks are allowed before them (bug 833297) -->
<div>fo&#x064c;o&#x0650;ba&#x0654;r</div>
</body>
</html>