Bug 1032671 - Part 6. Add reftest for emoji. r?jfkthame draft
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Wed, 30 Nov 2016 23:19:14 +0900
changeset 450213 9fd4103b6503819e6d1464adffae6423c7cc4c0e
parent 450212 0d0b3b70a75bfc865113ecd1b8f9c565203420f7
child 539697 3e7f051e02170869be08d933fb82680a1b6a887d
push id38793
push userbmo:m_kato@ga2.so-net.ne.jp
push dateFri, 16 Dec 2016 06:04:08 +0000
reviewersjfkthame
bugs1032671
milestone53.0a1
Bug 1032671 - Part 6. Add reftest for emoji. r?jfkthame I set 'Arial' as dummy to resolve line-height on OSX refrest. MozReview-Commit-ID: KLrgtnhZCGO
layout/reftests/font-matching/emoji-fallback-1-ref.html
layout/reftests/font-matching/emoji-fallback-1.html
layout/reftests/font-matching/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/font-matching/emoji-fallback-1-ref.html
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<meta charset="utf-8">
+<title>emoji fallback</title>
+<style>
+#test p {
+  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Sans Emoji', 'EmojiOne Mozilla';
+  line-height: 40px;
+}
+</style>
+</head>
+<body>
+
+<div id=test>
+<p>&#x231a;&#x231b;&#x1f300;&#x1f301;</p>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/font-matching/emoji-fallback-1.html
@@ -0,0 +1,20 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<meta charset="utf-8">
+<title>emoji fallback</title>
+<style>
+#test p {
+  font-family: 'Arial'; /* workaround for OSX reftest */
+  line-height: 40px;
+}
+</style>
+</head>
+<body>
+
+<div id=test>
+<p>&#x231a;&#x231b;&#x1f300;&#x1f301;</p>
+</div>
+
+</body>
+</html>
--- a/layout/reftests/font-matching/reftest.list
+++ b/layout/reftests/font-matching/reftest.list
@@ -107,16 +107,18 @@ skip-if(!cocoaWidget) HTTP(..) != apple-
 == italic-oblique-4.html italic-oblique-ref.html
 == italic-oblique-5.html italic-oblique-ref.html
 == italic-oblique-6.html italic-oblique-ref.html
 == italic-oblique-7.html italic-oblique-ref.html
 == italic-oblique-8.html italic-oblique-ref.html
 == italic-oblique-9.html italic-oblique-ref.html
 != italic-oblique-kinnari.html italic-oblique-kinnari-ref.html
 
+== emoji-fallback-1.html emoji-fallback-1-ref.html
+
 # system font generic per-language tests, only works under OSX currently
 # Bug 1212731 - initial implementation caused startup regression and
 # regression with full-width digits display in UI elements. Disable
 # tests until these problems are corrected.
 # random-if(!OSX) == system-generic-fallback-1.html system-generic-fallback-1-ref.html
 # random-if(!OSX||OSX<1008) == system-generic-fallback-2.html system-generic-fallback-2-ref.html
 # random-if(!OSX||OSX<1008) == system-generic-fallback-3.html system-generic-fallback-3-ref.html
 # random-if(!OSX||OSX<1008) == system-generic-fallback-4.html system-generic-fallback-4-ref.html