Add a test for subpixel positioned text, since we just made all the other tests not test that.
authordbaron@dbaron.org
Tue, 03 Apr 2007 18:58:26 -0700
changeset 317 927f620e28c1939cb537a31d9019cf5309932e43
parent 316 8d4637424e07715d7ed5286b9887ba27d7d667be
child 318 fa586339fe76294e838ff49fe10b46e74e7299b8
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
milestone1.9a4pre
Add a test for subpixel positioned text, since we just made all the other tests not test that.
layout/reftests/counters/reftest.list
layout/reftests/counters/text-boundaries-subpixel-ref.html
layout/reftests/counters/text-boundaries-subpixel.html
--- a/layout/reftests/counters/reftest.list
+++ b/layout/reftests/counters/reftest.list
@@ -51,8 +51,9 @@ fails == t1204-reset-00-c-o-test.html t1
 == t120401-scope-00-b-test.html t120401-scope-00-b-reference.html
 == t120401-scope-01-c-test.html t120401-scope-01-c-reference.html
 == t120401-scope-02-c-test.html t120401-scope-02-c-reference.html
 == t120401-scope-03-c-test.html t120401-scope-03-c-reference.html
 == t120401-scope-04-d-test.html t120401-scope-04-d-reference.html
 == t120403-content-none-00-c-test.html t120403-content-none-00-c-reference.html
 == t120403-display-none-00-c-test.html t120403-display-none-00-c-reference.html
 == t120403-visibility-00-c-test.html t120403-visibility-00-c-reference.html
+fails-if(MOZ_WIDGET_TOOLKIT=="cocoa") == text-boundaries-subpixel.html text-boundaries-subpixel-ref.html
new file mode 100644
--- /dev/null
+++ b/layout/reftests/counters/text-boundaries-subpixel-ref.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+  <title>Test that inline boundaries don't change subpixel positioning of text</title>
+ </head>
+ <body>
+
+ <!--
+      Since we changed all the other counters tests to NOT test this, we
+      should make sure we still test it.
+   -->
+
+ <p>This is some text with inline elements in it.</p>
+ <p>This-is-some-text-with-inline-elements-in-it.</p>
+
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/counters/text-boundaries-subpixel.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+  <title>Test that inline boundaries don't change subpixel positioning of text</title>
+ </head>
+ <body>
+
+ <!--
+      Since we changed all the other counters tests to NOT test this, we
+      should make sure we still test it.
+   -->
+
+ <p>This <span>is </span>some text<span> with </span>inline <span>elements</span> in<span> it</span>.</p>
+ <p>This-<span>is-</span>some-text<span>-with-</span>inline-<span>elements</span>-in<span>-it</span>.</p>
+
+ </body>
+</html>