bug 873902 - reftest for Arabic marks with Windows fonts. r=jdaggett
authorJonathan Kew <jkew@mozilla.com>
Tue, 21 May 2013 13:45:41 +0800
changeset 139610 54553d06c80d790660566074ec02b57fdcb9d768
parent 139609 689a40de8c5ac12baa51e752edfa2869180da156
child 139611 0931f7400cf2af6e6ee742b6beb17f92069755f8
push id3911
push userakeybl@mozilla.com
push dateMon, 24 Jun 2013 20:17:26 +0000
treeherdermozilla-aurora@7e26ca8db92b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdaggett
bugs873902
milestone24.0a1
bug 873902 - reftest for Arabic marks with Windows fonts. r=jdaggett
layout/reftests/text/arabic-marks-1-ref.html
layout/reftests/text/arabic-marks-1.html
layout/reftests/text/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text/arabic-marks-1-ref.html
@@ -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>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text/arabic-marks-1.html
@@ -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>
--- a/layout/reftests/text/reftest.list
+++ b/layout/reftests/text/reftest.list
@@ -152,16 +152,17 @@ HTTP(..) == arabic-shaping-1.html arabic
 random-if(!winWidget) == arial-bold-lam-alef-1.html arial-bold-lam-alef-1-ref.html
 # Fallback (presentation-forms) shaping with a font that lacks GSUB/GPOS
 # These tests are not valid on OS X because our masking of complex-script ranges
 # in the 'cmap' will prevent the test font (without GSUB) being used.
 skip-if(B2G) fails-if(cocoaWidget) HTTP(..) == arabic-fallback-1.html arabic-fallback-1-ref.html
 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
 skip-if(B2G) == 726392-3.html 726392-3-ref.html
 == 745555-1.html 745555-1-ref.html
 == 745555-2.html 745555-2-ref.html
 == 820255.html 820255-ref.html