Reftests for bug 726392, r=dbaron
authorSimon Montagu <smontagu@smontagu.org>
Mon, 20 Feb 2012 08:49:44 -0800
changeset 87208 a76bb7843e733d67788f0d942cb6101d9de4209e
parent 87207 6a43d088a2b44458360c328e2159344722b5a352
child 87209 28803f706b3a64f7934436cf5c45ae4208a0820c
push id6252
push usersmontagu@mozilla.com
push dateMon, 20 Feb 2012 16:50:06 +0000
treeherdermozilla-inbound@28803f706b3a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs726392
milestone13.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
Reftests for bug 726392, r=dbaron
layout/reftests/text/726392-1-ref.html
layout/reftests/text/726392-1.html
layout/reftests/text/726392-2-ref.html
layout/reftests/text/726392-2.html
layout/reftests/text/726392-3-ref.html
layout/reftests/text/726392-3.html
layout/reftests/text/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text/726392-1-ref.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+ <head>
+  <meta charset="utf-8">
+  <title>Bug 726392</title>
+  <style type="text/css">
+   p { margin: 0; letter-spacing: 10px}
+   .alignLeft { text-align: left; }
+   .alignRight { text-align: right; }
+   .alignCenter { text-align: center; }
+   .alignJustify { text-align: justify; }
+   .alignStart { text-align: start; }
+   .alignEnd { text-align: end; }
+   .alignLastAuto { -moz-text-align-last: auto; }
+   .alignLastLeft { -moz-text-align-last: left; }
+   .alignLastRight { -moz-text-align-last: right; }
+   .alignLastCenter { -moz-text-align-last: center; }
+   .alignLastJustify { -moz-text-align-last: justify; }
+   .alignLastStart { -moz-text-align-last: start; }
+   .alignLastEnd { -moz-text-align-last: end; }
+  </style>
+</head>
+ <body>
+  <p class="alignLeft alignLastAuto">test</p>
+  <p class="alignLeft alignLastLeft">test</p>
+  <p class="alignLeft alignLastRight">test</p>
+  <p class="alignLeft alignLastCenter">test</p>
+  <p class="alignLeft alignLastJustify">test</p>
+  <p class="alignLeft alignLastStart">test</p>
+  <p class="alignLeft alignLastEnd">test</p>
+  <p class="alignJustify alignLastAuto">test</p>
+  <p class="alignJustify alignLastLeft">test</p>
+  <p class="alignJustify alignLastRight">test</p>
+  <p class="alignJustify alignLastCenter">test</p>
+  <p class="alignJustify alignLastJustify">test</p>
+  <p class="alignJustify alignLastStart">test</p>
+  <p class="alignJustify alignLastEnd">test</p>
+  <p class="alignStart alignLastAuto">test</p>
+  <p class="alignStart alignLastLeft">test</p>
+  <p class="alignStart alignLastRight">test</p>
+  <p class="alignStart alignLastCenter">test</p>
+  <p class="alignStart alignLastJustify">test</p>
+  <p class="alignStart alignLastStart">test</p>
+  <p class="alignStart alignLastEnd">test</p>
+  <p class="alignEnd alignLastAuto">test</p>
+  <p class="alignEnd alignLastLeft">test</p>
+  <p class="alignEnd alignLastRight">test</p>
+  <p class="alignEnd alignLastCenter">test</p>
+  <p class="alignEnd alignLastJustify">test</p>
+  <p class="alignEnd alignLastStart">test</p>
+  <p class="alignEnd alignLastEnd">test</p>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text/726392-1.html
@@ -0,0 +1,66 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <head>
+  <meta charset="utf-8">
+  <title>Bug 726392</title>
+  <style type="text/css">
+   p { margin: 0; letter-spacing: 10px}
+   .alignLeft { text-align: left; }
+   .alignRight { text-align: right; }
+   .alignCenter { text-align: center; }
+   .alignJustify { text-align: justify; }
+   .alignStart { text-align: start; }
+   .alignEnd { text-align: end; }
+   .alignLastAuto { -moz-text-align-last: auto; }
+   .alignLastLeft { -moz-text-align-last: left; }
+   .alignLastRight { -moz-text-align-last: right; }
+   .alignLastCenter { -moz-text-align-last: center; }
+   .alignLastJustify { -moz-text-align-last: justify; }
+   .alignLastStart { -moz-text-align-last: start; }
+   .alignLastEnd { -moz-text-align-last: end; }
+  </style>
+</head>
+ <body>
+ <div id="e" style="width:50%">
+  <p class="alignLeft alignLastAuto">test</p>
+  <p class="alignLeft alignLastLeft">test</p>
+  <p class="alignLeft alignLastRight">test</p>
+  <p class="alignLeft alignLastCenter">test</p>
+  <p class="alignLeft alignLastJustify">test</p>
+  <p class="alignLeft alignLastStart">test</p>
+  <p class="alignLeft alignLastEnd">test</p>
+  <p class="alignJustify alignLastAuto">test</p>
+  <p class="alignJustify alignLastLeft">test</p>
+  <p class="alignJustify alignLastRight">test</p>
+  <p class="alignJustify alignLastCenter">test</p>
+  <p class="alignJustify alignLastJustify">test</p>
+  <p class="alignJustify alignLastStart">test</p>
+  <p class="alignJustify alignLastEnd">test</p>
+  <p class="alignStart alignLastAuto">test</p>
+  <p class="alignStart alignLastLeft">test</p>
+  <p class="alignStart alignLastRight">test</p>
+  <p class="alignStart alignLastCenter">test</p>
+  <p class="alignStart alignLastJustify">test</p>
+  <p class="alignStart alignLastStart">test</p>
+  <p class="alignStart alignLastEnd">test</p>
+  <p class="alignEnd alignLastAuto">test</p>
+  <p class="alignEnd alignLastLeft">test</p>
+  <p class="alignEnd alignLastRight">test</p>
+  <p class="alignEnd alignLastCenter">test</p>
+  <p class="alignEnd alignLastJustify">test</p>
+  <p class="alignEnd alignLastStart">test</p>
+  <p class="alignEnd alignLastEnd">test</p>
+
+<script type="text/javascript">
+function resizeElements()
+{
+  var enclosingDiv = document.getElementById("e");
+  enclosingDiv.style.width = "100%";
+  document.documentElement.removeAttribute("class");
+}
+
+document.addEventListener("MozReftestInvalidate", resizeElements, false);
+</script>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text/726392-2-ref.html
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+<html>
+ <head>
+  <meta charset="utf-8">
+  <title>Bug 726392</title>
+  <style type="text/css">
+   p { margin: 0; }
+   .alignLeft { text-align: left; }
+   .alignRight { text-align: right; }
+   .alignCenter { text-align: center; }
+   .alignJustify { text-align: justify; }
+   .alignStart { text-align: start; }
+   .alignEnd { text-align: end; }
+   .alignLastAuto { -moz-text-align-last: auto; }
+   .alignLastLeft { -moz-text-align-last: left; }
+   .alignLastRight { -moz-text-align-last: right; }
+   .alignLastCenter { -moz-text-align-last: center; }
+   .alignLastJustify { -moz-text-align-last: justify; }
+   .alignLastStart { -moz-text-align-last: start; }
+   .alignLastEnd { -moz-text-align-last: end; }
+  </style>
+</head>
+ <body dir="rtl">
+  <p dir="rtl" class="alignLeft alignLastAuto">בדיקה</p>
+  <p dir="rtl" class="alignLeft alignLastLeft">בדיקה</p>
+  <p dir="rtl" class="alignLeft alignLastRight">בדיקה</p>
+  <p dir="rtl" class="alignLeft alignLastCenter">בדיקה</p>
+  <p dir="rtl" class="alignLeft alignLastJustify">בדיקה</p>
+  <p dir="rtl" class="alignLeft alignLastStart">בדיקה</p>
+  <p dir="rtl" class="alignLeft alignLastEnd">בדיקה</p>
+  <p dir="rtl" class="alignJustify alignLastAuto">בדיקה</p>
+  <p dir="rtl" class="alignJustify alignLastLeft">בדיקה</p>
+  <p dir="rtl" class="alignJustify alignLastRight">בדיקה</p>
+  <p dir="rtl" class="alignJustify alignLastCenter">בדיקה</p>
+  <p dir="rtl" class="alignJustify alignLastJustify">בדיקה</p>
+  <p dir="rtl" class="alignJustify alignLastStart">בדיקה</p>
+  <p dir="rtl" class="alignJustify alignLastEnd">בדיקה</p>
+  <p dir="rtl" class="alignStart alignLastAuto">בדיקה</p>
+  <p dir="rtl" class="alignStart alignLastLeft">בדיקה</p>
+  <p dir="rtl" class="alignStart alignLastRight">בדיקה</p>
+  <p dir="rtl" class="alignStart alignLastCenter">בדיקה</p>
+  <p dir="rtl" class="alignStart alignLastJustify">בדיקה</p>
+  <p dir="rtl" class="alignStart alignLastStart">בדיקה</p>
+  <p dir="rtl" class="alignStart alignLastEnd">בדיקה</p>
+  <p dir="rtl" class="alignEnd alignLastAuto">בדיקה</p>
+  <p dir="rtl" class="alignEnd alignLastLeft">בדיקה</p>
+  <p dir="rtl" class="alignEnd alignLastRight">בדיקה</p>
+  <p dir="rtl" class="alignEnd alignLastCenter">בדיקה</p>
+  <p dir="rtl" class="alignEnd alignLastJustify">בדיקה</p>
+  <p dir="rtl" class="alignEnd alignLastStart">בדיקה</p>
+  <p dir="rtl" class="alignEnd alignLastEnd">בדיקה</p>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text/726392-2.html
@@ -0,0 +1,66 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <head>
+  <meta charset="utf-8">
+  <title>Bug 726392</title>
+  <style type="text/css">
+   p { margin: 0; }
+   .alignLeft { text-align: left; }
+   .alignRight { text-align: right; }
+   .alignCenter { text-align: center; }
+   .alignJustify { text-align: justify; }
+   .alignStart { text-align: start; }
+   .alignEnd { text-align: end; }
+   .alignLastAuto { -moz-text-align-last: auto; }
+   .alignLastLeft { -moz-text-align-last: left; }
+   .alignLastRight { -moz-text-align-last: right; }
+   .alignLastCenter { -moz-text-align-last: center; }
+   .alignLastJustify { -moz-text-align-last: justify; }
+   .alignLastStart { -moz-text-align-last: start; }
+   .alignLastEnd { -moz-text-align-last: end; }
+  </style>
+</head>
+ <body>
+ <div id="e" style="width:50%">
+  <p dir="rtl" class="alignLeft alignLastAuto">בדיקה</p>
+  <p dir="rtl" class="alignLeft alignLastLeft">בדיקה</p>
+  <p dir="rtl" class="alignLeft alignLastRight">בדיקה</p>
+  <p dir="rtl" class="alignLeft alignLastCenter">בדיקה</p>
+  <p dir="rtl" class="alignLeft alignLastJustify">בדיקה</p>
+  <p dir="rtl" class="alignLeft alignLastStart">בדיקה</p>
+  <p dir="rtl" class="alignLeft alignLastEnd">בדיקה</p>
+  <p dir="rtl" class="alignJustify alignLastAuto">בדיקה</p>
+  <p dir="rtl" class="alignJustify alignLastLeft">בדיקה</p>
+  <p dir="rtl" class="alignJustify alignLastRight">בדיקה</p>
+  <p dir="rtl" class="alignJustify alignLastCenter">בדיקה</p>
+  <p dir="rtl" class="alignJustify alignLastJustify">בדיקה</p>
+  <p dir="rtl" class="alignJustify alignLastStart">בדיקה</p>
+  <p dir="rtl" class="alignJustify alignLastEnd">בדיקה</p>
+  <p dir="rtl" class="alignStart alignLastAuto">בדיקה</p>
+  <p dir="rtl" class="alignStart alignLastLeft">בדיקה</p>
+  <p dir="rtl" class="alignStart alignLastRight">בדיקה</p>
+  <p dir="rtl" class="alignStart alignLastCenter">בדיקה</p>
+  <p dir="rtl" class="alignStart alignLastJustify">בדיקה</p>
+  <p dir="rtl" class="alignStart alignLastStart">בדיקה</p>
+  <p dir="rtl" class="alignStart alignLastEnd">בדיקה</p>
+  <p dir="rtl" class="alignEnd alignLastAuto">בדיקה</p>
+  <p dir="rtl" class="alignEnd alignLastLeft">בדיקה</p>
+  <p dir="rtl" class="alignEnd alignLastRight">בדיקה</p>
+  <p dir="rtl" class="alignEnd alignLastCenter">בדיקה</p>
+  <p dir="rtl" class="alignEnd alignLastJustify">בדיקה</p>
+  <p dir="rtl" class="alignEnd alignLastStart">בדיקה</p>
+  <p dir="rtl" class="alignEnd alignLastEnd">בדיקה</p>
+ </div>
+<script type="text/javascript">
+function resizeElements()
+{
+  var enclosingDiv = document.getElementById("e");
+  enclosingDiv.style.width = "100%";
+  document.documentElement.removeAttribute("class");
+}
+
+document.addEventListener("MozReftestInvalidate", resizeElements, false);
+</script>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text/726392-3-ref.html
@@ -0,0 +1,83 @@
+<!DOCTYPE html>
+<html>
+ <head>
+  <meta charset="utf-8">
+  <title>Bug 726392</title>
+  <style type="text/css">
+   p { margin: 0; white-space: pre-line; letter-spacing: 10px}
+   .alignLeft { text-align: left; }
+   .alignRight { text-align: right; }
+   .alignCenter { text-align: center; }
+   .alignJustify { text-align: justify; }
+   .alignStart { text-align: start; }
+   .alignEnd { text-align: end; }
+   .alignLastAuto { -moz-text-align-last: auto; }
+   .alignLastLeft { -moz-text-align-last: left; }
+   .alignLastRight { -moz-text-align-last: right; }
+   .alignLastCenter { -moz-text-align-last: center; }
+   .alignLastJustify { -moz-text-align-last: justify; }
+   .alignLastStart { -moz-text-align-last: start; }
+   .alignLastEnd { -moz-text-align-last: end; }
+  </style>
+</head>
+ <body>
+  <div>
+  <p class="alignLeft alignLastAuto">test
+test</p>
+  <p class="alignLeft alignLastLeft">test
+test</p>
+  <p class="alignLeft alignLastRight">test
+test</p>
+  <p class="alignLeft alignLastCenter">test
+test</p>
+  <p class="alignLeft alignLastJustify">test
+test</p>
+  <p class="alignLeft alignLastStart">test
+test</p>
+  <p class="alignLeft alignLastEnd">test
+test</p>
+  <p class="alignJustify alignLastAuto">test
+test</p>
+  <p class="alignJustify alignLastLeft">test
+test</p>
+  <p class="alignJustify alignLastRight">test
+test</p>
+  <p class="alignJustify alignLastCenter">test
+test</p>
+  <p class="alignJustify alignLastJustify">test
+test</p>
+  <p class="alignJustify alignLastStart">test
+test</p>
+  <p class="alignJustify alignLastEnd">test
+test</p>
+  <p class="alignStart alignLastAuto">test
+test</p>
+  <p class="alignStart alignLastLeft">test
+test</p>
+  <p class="alignStart alignLastRight">test
+test</p>
+  <p class="alignStart alignLastCenter">test
+test</p>
+  <p class="alignStart alignLastJustify">test
+test</p>
+  <p class="alignStart alignLastStart">test
+test</p>
+  <p class="alignStart alignLastEnd">test
+test</p>
+  <p class="alignEnd alignLastAuto">test
+test</p>
+  <p class="alignEnd alignLastLeft">test
+test</p>
+  <p class="alignEnd alignLastRight">test
+test</p>
+  <p class="alignEnd alignLastCenter">test
+test</p>
+  <p class="alignEnd alignLastJustify">test
+test</p>
+  <p class="alignEnd alignLastStart">test
+test</p>
+  <p class="alignEnd alignLastEnd">test
+test</p>
+  </div>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text/726392-3.html
@@ -0,0 +1,94 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <head>
+  <meta charset="utf-8">
+  <title>Bug 726392</title>
+  <style type="text/css">
+   p { margin: 0; white-space: pre-line; letter-spacing: 10px}
+   .alignLeft { text-align: left; }
+   .alignRight { text-align: right; }
+   .alignCenter { text-align: center; }
+   .alignJustify { text-align: justify; }
+   .alignStart { text-align: start; }
+   .alignEnd { text-align: end; }
+   .alignLastAuto { -moz-text-align-last: auto; }
+   .alignLastLeft { -moz-text-align-last: left; }
+   .alignLastRight { -moz-text-align-last: right; }
+   .alignLastCenter { -moz-text-align-last: center; }
+   .alignLastJustify { -moz-text-align-last: justify; }
+   .alignLastStart { -moz-text-align-last: start; }
+   .alignLastEnd { -moz-text-align-last: end; }
+  </style>
+</head>
+ <body>
+ <div id="e" style="width:50%">
+  <p class="alignLeft alignLastAuto">test
+test</p>
+  <p class="alignLeft alignLastLeft">test
+test</p>
+  <p class="alignLeft alignLastRight">test
+test</p>
+  <p class="alignLeft alignLastCenter">test
+test</p>
+  <p class="alignLeft alignLastJustify">test
+test</p>
+  <p class="alignLeft alignLastStart">test
+test</p>
+  <p class="alignLeft alignLastEnd">test
+test</p>
+  <p class="alignJustify alignLastAuto">test
+test</p>
+  <p class="alignJustify alignLastLeft">test
+test</p>
+  <p class="alignJustify alignLastRight">test
+test</p>
+  <p class="alignJustify alignLastCenter">test
+test</p>
+  <p class="alignJustify alignLastJustify">test
+test</p>
+  <p class="alignJustify alignLastStart">test
+test</p>
+  <p class="alignJustify alignLastEnd">test
+test</p>
+  <p class="alignStart alignLastAuto">test
+test</p>
+  <p class="alignStart alignLastLeft">test
+test</p>
+  <p class="alignStart alignLastRight">test
+test</p>
+  <p class="alignStart alignLastCenter">test
+test</p>
+  <p class="alignStart alignLastJustify">test
+test</p>
+  <p class="alignStart alignLastStart">test
+test</p>
+  <p class="alignStart alignLastEnd">test
+test</p>
+  <p class="alignEnd alignLastAuto">test
+test</p>
+  <p class="alignEnd alignLastLeft">test
+test</p>
+  <p class="alignEnd alignLastRight">test
+test</p>
+  <p class="alignEnd alignLastCenter">test
+test</p>
+  <p class="alignEnd alignLastJustify">test
+test</p>
+  <p class="alignEnd alignLastStart">test
+test</p>
+  <p class="alignEnd alignLastEnd">test
+test</p>
+ </div>
+<script type="text/javascript">
+function resizeElements()
+{
+  var enclosingDiv = document.getElementById("e");
+  enclosingDiv.style.width = "100%";
+  document.documentElement.removeAttribute("class");
+}
+
+document.addEventListener("MozReftestInvalidate", resizeElements, false);
+</script>
+
+</body>
+</html>
--- a/layout/reftests/text/reftest.list
+++ b/layout/reftests/text/reftest.list
@@ -131,16 +131,20 @@ fails-if(!winWidget) HTTP(..) == 475092-
 random-if(winWidget) HTTP(..) != kerning-01.html kerning-01-notref.html
 # Test for bug 577380, support for AAT layout (on OS X only)
 random-if(!cocoaWidget) == 577380.html 577380-ref.html
 # Test for OpenType Arabic shaping support
 HTTP(..) == arabic-shaping-1.html arabic-shaping-1-ref.html
 # check ligature in Arial Bold on Windows, for bug 644184; may fail on other platforms depending on fonts
 random-if(!winWidget) == arial-bold-lam-alef-1.html arial-bold-lam-alef-1-ref.html
 
+== 726392-1.html 726392-1-ref.html
+== 726392-2.html 726392-2-ref.html
+== 726392-3.html 726392-3-ref.html
+
 # tests to compare graphite to opentype (will trivially pass when graphite not enabled)
 HTTP(..) == graphite-05-ot-only.html graphite-05-ref.html
 HTTP(..) != graphite-05-ot-only.html graphite-05-fail.html
 HTTP(..) == graphite-05-simple.html graphite-05-ref.html
 HTTP(..) == graphite-05-multipass.html graphite-05-ref.html
 HTTP(..) == graphite-05-lang.html graphite-05-ref.html
 HTTP(..) == graphite-05-badlang.html graphite-05-ref.html
 HTTP(..) == graphite-05-feat.html graphite-05-ref.html