fallback reftest (missing files). b=455647
authorKarl Tomlinson <karlt+@karlt.net>
Wed, 29 Oct 2008 13:23:43 -0700
changeset 21073 f404bcc1b7f6e7c82592072250d7c05ffdf871aa
parent 21072 84ae8ab37bca53c7008225b0fa0745252d3814b3
child 21074 a9abce8ff6682c4878030f706b3754de4a2b516a
push id3285
push userktomlinson@mozilla.com
push dateWed, 29 Oct 2008 20:24:05 +0000
treeherdermozilla-central@f404bcc1b7f6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs455647
milestone1.9.1b2pre
fallback reftest (missing files). b=455647
layout/reftests/text/fallback-01-ref.xhtml
layout/reftests/text/fallback-01.xhtml
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text/fallback-01-ref.xhtml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
+	  [<!ENTITY first "!"><!ENTITY fallback "&#x00e6;">]>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<!-- U+00E6 is expected to be found in Arial and DejaVu Sans, but not
+     Devanagari MT, FrankRuehl, nor Standard Symbols L.
+     "!" is chosen as it is expected to be found in the first font found.  -->
+  <head>
+    <style>
+      p { font-size: 16.6px;
+          font-family: Devanagari MT, FrankRuehl, Standard Symbols L, Arial, DejaVu Sans; serif }
+      .fallback { font-family: Arial, DejaVu Sans, serif; }
+    </style>
+  </head>
+  <body>
+    <p><span class="fallback">&fallback;&fallback;</span>&first;<span class="fallback">&fallback;</span>&first;<span class="fallback">&fallback;</span>&first;<span class="fallback">&fallback;</span></p>
+  </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text/fallback-01.xhtml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
+	  [<!ENTITY first "!"><!ENTITY fallback "&#x00e6;">]>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<!-- U+00E6 is expected to be found in Arial and DejaVu Sans, but not
+     Devanagari MT, FrankRuehl, nor Standard Symbols L.
+     "!" is chosen as it is expected to be found in the first font found.  -->
+  <head>
+    <style>
+      p { font-size: 16.6px;
+          font-family: Devanagari MT, FrankRuehl, Standard Symbols L, Arial, DejaVu Sans; serif }
+      .fallback { font-family: Arial, DejaVu Sans, serif; }
+    </style>
+  </head>
+  <body>
+    <p>&fallback;&fallback;&first;&fallback;&first;&fallback;&first;<span class="fallback">&fallback;</span></p>
+  </body>
+</html>