Bug 1394762 - Add testcase for Bug 1394311. r=manishearth, a=gchang
authorKevin Hsieh <kevin.hsieh@ucla.edu>
Mon, 28 Aug 2017 16:57:38 -0700
changeset 423875 346027fa6dc3beaa9b336a107276fbbd8d175005
parent 423874 63632d8680a0f966234bcbe8836b12ae00a41cc4
child 423876 2b4f305aed0addd8ebc65ba0b4667db9a81754b2
push id1517
push userjlorenzo@mozilla.com
push dateThu, 14 Sep 2017 16:50:54 +0000
treeherdermozilla-release@3b41fd564418 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmanishearth, gchang
bugs1394762, 1394311
milestone56.0
Bug 1394762 - Add testcase for Bug 1394311. r=manishearth, a=gchang MozReview-Commit-ID: 5jAZwRMYoHq
layout/reftests/font-matching/1394311-ref.htm
layout/reftests/font-matching/1394311.htm
layout/reftests/font-matching/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/font-matching/1394311-ref.htm
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<!--
+Reftest for Bug 1394311 (reference file)
+-->
+<html>
+<head>
+<meta charset="UTF-8">
+<style>
+span {
+  font-family: Foo;  /* insert a bogus font-family to avoid Bug 1367860 */
+  font-weight: bold;
+  border: 2px solid black;
+}
+</style>
+</head>
+<body style="font-size: xx-large">
+  <span lang="zh-cn">述</span><span lang="zh-cn">述</span><span lang="zh-hans">述</span><span lang="zh-hans">述</span><br>
+  <span lang="zh-tw">述</span><span lang="zh-tw">述</span><span lang="zh-hant">述</span><span lang="zh-hant">述</span><br>
+  <span lang="ja-jp">述</span><span lang="ja-jp">述</span><br>
+  <span lang="ko-kr">述</span><span lang="ko-kr">述</span><br>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/font-matching/1394311.htm
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<!--
+Reftest for Bug 1394311
+-->
+<html>
+<head>
+<meta charset="UTF-8">
+<style>
+span {
+  font-family: Foo;  /* insert a bogus font-family to avoid Bug 1367860 */
+  font-weight: bold;
+  border: 2px solid black;
+}
+</style>
+</head>
+<body style="font-size: xx-large">
+  <span lang="zh-CN">述</span><span lang="ZH-CN">述</span><span lang="zh-Hans">述</span><span lang="ZH-HANS">述</span><br>
+  <span lang="zh-TW">述</span><span lang="ZH-TW">述</span><span lang="zh-Hant">述</span><span lang="ZH-HANT">述</span><br>
+  <span lang="ja-JP">述</span><span lang="JA-JP">述</span><br>
+  <span lang="ko-KR">述</span><span lang="KO-KR">述</span><br>
+</body>
+</html>
--- a/layout/reftests/font-matching/reftest.list
+++ b/layout/reftests/font-matching/reftest.list
@@ -1,10 +1,14 @@
 == CSS21-t1502-no-inherited-font-family.xhtml CSS21-t1502-no-inherited-font-family-ref.xhtml
 
+# tests for bug 1394311 (case-insensitive lang tag processing)
+pref(font.default.zh-CN,"serif") pref(font.default.zh-TW,"serif") pref(font.default.ja,"serif") pref(font.default.ko,"serif") == 1394311.htm 1394311-ref.htm
+pref(font.default.zh-CN,"sans-serif") pref(font.default.zh-TW,"sans-serif") pref(font.default.ja,"sans-serif") pref(font.default.ko,"sans-serif") == 1394311.htm 1394311-ref.htm
+
 # basic tests for bug 538730
 != synthetic-bold-1.html synthetic-bold-1-ref.html
 != synthetic-bold-2.html synthetic-bold-2-ref.html
 
 # synthetic bold/italic tests
 != defaultfont-bold.html defaultfont.html
 != defaultfont-italic.html defaultfont.html 
 != defaultfont-oblique.html defaultfont.html