bug 900975 - reftest for -moz-osx-font-smoothing on display:inline element. r=dbaron
authorJonathan Kew <jkew@mozilla.com>
Sat, 03 Aug 2013 08:59:00 +0100
changeset 153581 5197eef777dd5da68dd3f5424e3fdfd837ad3ae7
parent 153580 3ca6d03fe179f5df52e99cfd28bb467e3c9a5d3d
child 153582 714a27789e9e751791328ac8a458243438e72d40
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs900975
milestone25.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 900975 - reftest for -moz-osx-font-smoothing on display:inline element. r=dbaron
layout/reftests/text/osx-font-smoothing-2-notref.html
layout/reftests/text/osx-font-smoothing-2-ref.html
layout/reftests/text/osx-font-smoothing-2.html
layout/reftests/text/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text/osx-font-smoothing-2-notref.html
@@ -0,0 +1,23 @@
+<!DOCTYPE HTML>
+<!-- testcase for https://bugzilla.mozilla.org/show_bug.cgi?id=900975 -->
+<html>
+<head>
+<style type="text/css">
+p {
+  margin: 20px;
+  font-family: Arial, sans-serif;
+  background-color: black;
+  color: white;
+}
+.smoothing-gray {
+  -moz-osx-font-smoothing: grayscale;
+}
+.smoothing-auto {
+  -moz-osx-font-smoothing: auto;
+}
+</style>
+</head>
+<body lang="en">
+<p class="smoothing-auto"><span>foo</span> <span>bar</span></p>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text/osx-font-smoothing-2-ref.html
@@ -0,0 +1,26 @@
+<!DOCTYPE HTML>
+<!-- testcase for https://bugzilla.mozilla.org/show_bug.cgi?id=900975 -->
+<html>
+<head>
+<style type="text/css">
+p {
+  margin: 20px;
+  font-family: Arial, sans-serif;
+  background-color: black;
+  color: white;
+}
+.smoothing-gray {
+  -moz-osx-font-smoothing: grayscale;
+}
+.smoothing-auto {
+  -moz-osx-font-smoothing: auto;
+}
+span {
+  display: inline-block;
+}
+</style>
+</head>
+<body lang="en">
+<p class="smoothing-auto"><span>foo</span> <span class="smoothing-gray">bar</span></p>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text/osx-font-smoothing-2.html
@@ -0,0 +1,23 @@
+<!DOCTYPE HTML>
+<!-- testcase for https://bugzilla.mozilla.org/show_bug.cgi?id=900975 -->
+<html>
+<head>
+<style type="text/css">
+p {
+  margin: 20px;
+  font-family: Arial, sans-serif;
+  background-color: black;
+  color: white;
+}
+.smoothing-gray {
+  -moz-osx-font-smoothing: grayscale;
+}
+.smoothing-auto {
+  -moz-osx-font-smoothing: auto;
+}
+</style>
+</head>
+<body lang="en">
+<p class="smoothing-auto"><span>foo</span> <span class="smoothing-gray">bar</span></p>
+</body>
+</html>
--- a/layout/reftests/text/reftest.list
+++ b/layout/reftests/text/reftest.list
@@ -273,9 +273,11 @@ pref(gfx.font_rendering.graphite.enabled
 == auto-hyphenation-sl-1.html auto-hyphenation-sl-1-ref.html
 == auto-hyphenation-sr-1.html auto-hyphenation-sr-1-ref.html
 == auto-hyphenation-sv-1.html auto-hyphenation-sv-1-ref.html # test swedish patterns
 != auto-hyphenation-sv-1.html auto-hyphenation-sv-1-notref.html # verify swedish != english
 == auto-hyphenation-tr-1.html auto-hyphenation-tr-1-ref.html
 == auto-hyphenation-uk-1.html auto-hyphenation-uk-1-ref.html
 
 # osx-font-smoothing - with and without subpixel AA, only under OSX
-skip-if(!cocoaWidget||OSX==10.6||OSX==10.7) != osx-font-smoothing.html osx-font-smoothing-ref.html
+fails-if(!cocoaWidget||OSX==10.6||OSX==10.7) != osx-font-smoothing.html osx-font-smoothing-ref.html
+fails-if(!cocoaWidget||OSX==10.6||OSX==10.7) != osx-font-smoothing-2.html osx-font-smoothing-2-notref.html
+== osx-font-smoothing-2.html osx-font-smoothing-2-ref.html