Bug 1108177 - Reftest to check for fallback mark stacking. r=jdaggett
authorJonathan Kew <jkew@mozilla.com>
Wed, 28 Jan 2015 09:03:30 +0000
changeset 239609 0edb544e9ebc2859ba54327d82a380f1715f6a44
parent 239608 02601ab9f9afcfa06fbc5185e816e6df71accce3
child 239610 31e36157db00057cc9540316b7a6a96ca79ee8fa
push id500
push userjoshua.m.grant@gmail.com
push dateThu, 29 Jan 2015 01:48:36 +0000
reviewersjdaggett
bugs1108177
milestone38.0a1
Bug 1108177 - Reftest to check for fallback mark stacking. r=jdaggett
layout/reftests/text/fallback-mark-stacking-1-notref.html
layout/reftests/text/fallback-mark-stacking-1.html
layout/reftests/text/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text/fallback-mark-stacking-1-notref.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset=utf-8>
+<style>
+@font-face {
+  font-family: test;
+  /* Note that this font has no OpenType layout tables: */
+  src: url(../fonts/sil/GenR102.ttf);
+}
+body {
+  font-family: test;
+}
+.test {
+  font-size: 100px;
+  line-height: 2;
+}
+</style>
+</head>
+<body>
+These examples should NOT look the same:
+<div class=test>x&#x303;&#x302; x&#x302;&#x303;</div>
+</body>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text/fallback-mark-stacking-1.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset=utf-8>
+<style>
+@font-face {
+  font-family: test;
+  /* Note that this font has no OpenType layout tables: */
+  src: url(../fonts/sil/GenR102.ttf);
+}
+body {
+  font-family: test;
+}
+.test {
+  font-size: 100px;
+  line-height: 2;
+}
+</style>
+</head>
+<body>
+These examples should NOT look the same:
+<div class=test>x&#x302;&#x303; x&#x303;&#x302;</div>
+</body>
--- a/layout/reftests/text/reftest.list
+++ b/layout/reftests/text/reftest.list
@@ -158,16 +158,18 @@ random-if(!winWidget) == arial-bold-lam-
 # Fallback (presentation-forms) shaping with a font that lacks GSUB/GPOS
 # These tests are not valid with Mac or FT2 font backends 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||Android) HTTP(..) == arabic-fallback-1.html arabic-fallback-1-ref.html
 fails-if(cocoaWidget||Android||B2G) HTTP(..) == arabic-fallback-2.html arabic-fallback-2-ref.html
 fails-if(cocoaWidget||Android||B2G) HTTP(..) == arabic-fallback-3.html arabic-fallback-3-ref.html
 fails-if(!cocoaWidget&&!Android&&!B2G) HTTP(..) != arabic-fallback-4.html arabic-fallback-4-notref.html
 == arabic-marks-1.html arabic-marks-1-ref.html
+# harfbuzz fallback mark stacking in the absence of GPOS:
+HTTP(..) != fallback-mark-stacking-1.html fallback-mark-stacking-1-notref.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