Tests for bug 730562, r=roc
authorSimon Montagu <smontagu@smontagu.org>
Wed, 21 Mar 2012 16:50:45 -0700
changeset 89984 a30e6278c122
parent 89983 31b7c18df3ca
child 89985 9f0ebe3d07ff
push id22300
push usermak77@bonardo.net
push date2012-03-22 12:08 +0000
treeherdermozilla-central@b622d692b8ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs730562
milestone14.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
Tests for bug 730562, r=roc
layout/reftests/bidi/730562-1-ref.html
layout/reftests/bidi/730562-1.html
layout/reftests/bidi/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/730562-1-ref.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta charset="utf-8">
+  </head>
+  <body>
+    <div style="direction: rtl; white-space: pre;"><span style="outline: 1px solid red;" id="x">
+
+
+</span></div>
+  </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/730562-1.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <meta charset="utf-8">
+    <script>
+
+function boom()
+{
+  // Force frame construction
+  document.documentElement.offsetHeight;
+
+  // A dynamic change
+  var x = document.getElementById("x");
+  x.removeChild(x.firstChild);
+  x.appendChild(document.createTextNode("\n\n\n"));
+}
+
+    </script>
+  </head>
+  <body onload="boom();">
+    <div style="direction: rtl; white-space: pre;"><span style="outline: 1px solid red;" id="x">
+	:p</span></div>
+  </body>
+</html>
--- a/layout/reftests/bidi/reftest.list
+++ b/layout/reftests/bidi/reftest.list
@@ -97,8 +97,9 @@ fails-if(/^Windows\x20NT\x206\.1/.test(h
 == 712600-2.html 712600-2-ref.html
 == 712600-3.html 712600-3-ref.html
 == 718236-1.html 718236-1-ref.html
 == 718236-2.html 718236-2-ref.html
 == 718236-3.html 718236-3-ref.html
 == 726420-1.html 726420-1-ref.html
 == 726460-1.html 726460-1-ref.html
 == 729047-1.html 729047-1-ref.html
+== 730562-1.html 730562-1-ref.html