bug 873902 - reftest for Arabic marks with Windows fonts. r=jdaggett

This commit is contained in:
Jonathan Kew 2013-05-21 13:45:41 +08:00
parent 972e07d5e9
commit 2245077183
3 changed files with 85 additions and 0 deletions

View File

@ -0,0 +1,42 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>bug 873902 - marks should not affect width of Arabic text</title>
<style>
body {
background-color: white;
font-size: 50px;
margin: 20px;
}
/* Try several fonts that should be available on Windows; at least Courier New is also on OS X.
Elsewhere, we may fall back to default, which may or may not be "interesting" to test,
but should pass harmlessly unless there's actually a broken font that shapes badly. */
#a {
font-family: Andalus;
}
#b {
font-family: Courier New;
}
#c {
font-family: Simplified Arabic;
}
.test {
color: white;
}
</style>
</head>
<body>
<div id="a">
foo<span class="test">الرحمن الرحيم</span>bar
</div>
<div id="b">
foo<span class="test">الرحمن الرحيم</span>bar
</div>
<div id="c">
foo<span class="test">الرحمن الرحيم</span>bar
</div>
</body>
</html>

View File

@ -0,0 +1,42 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>bug 873902 - marks should not affect width of Arabic text</title>
<style>
body {
background-color: white;
font-size: 50px;
margin: 20px;
}
/* Try several fonts that should be available on Windows; at least Courier New is also on OS X.
Elsewhere, we may fall back to default, which may or may not be "interesting" to test,
but should pass harmlessly unless there's actually a broken font that shapes badly. */
#a {
font-family: Andalus;
}
#b {
font-family: Courier New;
}
#c {
font-family: Simplified Arabic;
}
.test {
color: white;
}
</style>
</head>
<body>
<div id="a">
foo<span class="test">الرَّحْمَنِ الرَّحِيمِ</span>bar
</div>
<div id="b">
foo<span class="test">الرَّحْمَنِ الرَّحِيمِ</span>bar
</div>
<div id="c">
foo<span class="test">الرَّحْمَنِ الرَّحِيمِ</span>bar
</div>
</body>
</html>

View File

@ -157,6 +157,7 @@ skip-if(B2G) fails-if(cocoaWidget) HTTP(..) == arabic-fallback-1.html arabic-fal
fails-if(cocoaWidget) HTTP(..) == arabic-fallback-2.html arabic-fallback-2-ref.html
fails-if(cocoaWidget) HTTP(..) == arabic-fallback-3.html arabic-fallback-3-ref.html
fails-if(!cocoaWidget) HTTP(..) != arabic-fallback-4.html arabic-fallback-4-notref.html
== arabic-marks-1.html arabic-marks-1-ref.html
== 726392-1.html 726392-1-ref.html
== 726392-2.html 726392-2-ref.html