reftest for bug 424766. r=roc
☠☠ backed out by be5250057cb5 ☠ ☠
authorJonathan Griffin <jgriffin@mozilla.com>
Thu, 09 Jul 2009 11:21:02 +0200
changeset 26042 004f430f1c70855b1d2baf7514b1cbf11695e13d
parent 26041 bf6e91d6056349f6f6d0f4618f7dd2c407537a1f
child 26043 0d0298519a113dbff8677536e13ef4eabfa7cd9c
child 26045 be5250057cb5dff0258eb3722e1b46f917f3b49c
push id1753
push userdgottwald@mozilla.com
push dateThu, 09 Jul 2009 09:22:41 +0000
reviewersroc
bugs424766
milestone1.9.1.1pre
reftest for bug 424766. r=roc
layout/reftests/bugs/424766-1-ref.html
layout/reftests/bugs/424766-1.html
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/424766-1-ref.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title></title>
+
+</head>
+
+<body style="width: 1000px; margin: 0; padding: 0">
+  <table cellpadding="0" cellspacing="0" align="center">
+    <tr>
+      <td>
+        <div style="background:red; WIDTH: 400px; height:400px;"></div>
+        <div id="x" style="width: 0px"></div>
+
+      </td>
+    </tr>
+  </table>
+  <div style="position: absolute; top: 0; left: 300px; height: 400px; width: 400px; background: green; opacity: 0.9"></div>
+
+<br/>
+
+<div style="text-align: center;">
+<form method="get" action="#">
+  <input onclick="return false;" value="Trigger Bug" type="button" />
+</form>
+</div>
+
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/424766-1.html
@@ -0,0 +1,45 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+<head>
+<title></title>
+
+<script type="text/javascript">
+//<![CDATA[
+
+function showBug() {
+  document.getElementById('x').style.width = 0;
+  }
+
+window.addEventListener("MozReftestInvalidate",
+  function() {
+    showBug();
+    document.documentElement.className = "";
+  }, false);
+
+//]]>
+</script>
+
+</head>
+
+<body style="width: 1000px; margin: 0; padding: 0">
+  <table cellpadding="0" cellspacing="0" align="center">
+    <tr>
+      <td>
+        <div style="background:red; WIDTH: 400px; height:400px;"></div>
+        <div id="x" style="width: 600px"></div>
+
+      </td>
+    </tr>
+  </table>
+  <div style="position: absolute; top: 0; left: 300px; height: 400px; width: 400px; background: green; opacity: 0.9"></div>
+
+<br/>
+
+<div style="text-align: center;">
+<form method="get" action="#">
+  <input onclick="showBug(); return false;" value="Trigger Bug" type="button" />
+</form>
+</div>
+
+</body>
+</html>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -881,16 +881,17 @@ fails-if(MOZ_WIDGET_TOOLKIT=="gtk2") == 
 == 424236-7.html 424236-7-ref.html
 == 424236-8.html 424236-8-ref.html
 == 424236-9.html 424236-9-ref.html
 == 424236-10.html 424236-10-ref.html
 == 424236-11.html 424236-3-ref.html
 == 424434-1.html 424434-1-ref.html
 == 424631-1.html 424631-1-ref.html
 == 424710-1.html 424710-1-ref.html
+== 424766-1.html 424766-1-ref.html
 == 425247-1.html 425247-1-ref.html
 == 425247-2.html 425247-2-ref.html
 == 425972-1.html 425972-1-ref.html
 == 425972-2.html 425972-2-ref.html
 != 425972-1.html 425972-2.html
 == 426629-1.html 426629-1-ref.html
 != 427017-1.xhtml about:blank    # crash test (needs reftest-print)
 == 427129-scrollframe.html 427129-ref.html