Adding test for bug 523096
authorBoris Zbarsky <bzbarsky@mit.edu>
Tue, 20 Oct 2009 01:43:24 -0400
changeset 34024 8ab265cb6feb9bb1177d9b16a374f2426dbe43d1
parent 34023 e54e14cf90cba2198a3e3bf37c5d029ad6e73e78
child 34025 09905e5b1f989ab5551615265e63f567677676c3
push idunknown
push userunknown
push dateunknown
bugs523096
milestone1.9.3a1pre
Adding test for bug 523096
layout/reftests/bugs/523096-1-ref.html
layout/reftests/bugs/523096-1.html
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/523096-1-ref.html
@@ -0,0 +1,36 @@
+<html>
+  <head>
+      <style>
+      table { empty-cells: show; }
+    </style>
+  </head>
+  <body>
+    <table border="1" id="thetable">
+      <thead>
+        <tr>
+          <th>col1</th>
+          <th>col2</th>
+          <th>col3</th>
+          <th>col4</th>
+          <th>col5</th>
+        </tr>
+      </thead>
+      <tbody style="overflow-y:auto;overflow-x:hidden;">
+        <tr>
+          <td>val1</td>
+          <td></td>
+          <td><input maxlength="6" type="text" id="input" value="text" size="6" /></td>
+          <td></td>
+          <td></td>
+        </tr>
+        <tr>
+          <td>val2</td>
+          <td></td>
+          <td></td>
+          <td></td>
+          <td></td>
+        </tr>
+      </tbody>
+    </table>
+  </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/523096-1.html
@@ -0,0 +1,43 @@
+<html>
+  <head>
+    <style>
+      table { empty-cells: show; }
+    </style>
+    <script>
+      window.onload = function() {
+        var thetable = document.getElementById("thetable");
+        var input = document.getElementById("input");
+        thetable.rows[1].cells[2].appendChild(input);
+      }
+    </script>
+  </head>
+  <body>
+    <table border="1" id="thetable">
+      <thead>
+        <tr>
+          <th>col1</th>
+          <th>col2</th>
+          <th>col3</th>
+          <th>col4</th>
+          <th>col5</th>
+        </tr>
+      </thead>
+      <tbody style="overflow-y:auto;overflow-x:hidden;">
+        <tr>
+          <td>val1</td>
+          <td><input maxlength="6" type="text" id="input" value="text" size="6" /></td>
+          <td></td>
+          <td></td>
+          <td></td>
+        </tr>
+        <tr>
+          <td>val2</td>
+          <td></td>
+          <td></td>
+          <td></td>
+          <td></td>
+        </tr>
+      </tbody>
+    </table>
+  </body>
+</html>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -1325,8 +1325,9 @@ fails-if(MOZ_WIDGET_TOOLKIT!="cocoa") ==
 == 513318-1.xul 513318-1-ref.xul
 != 513318-2.xul 513318-2-ref.xul
 != 513318-3.xul 513318-3-ref.xul
 == 521525-1.html 521525-1-ref.html
 == 521525-2.html 521525-2-ref.html
 == 521539-1.html 521539-1-ref.html
 == 520421-1.html 520421-1-ref.html
 == 521685-1.html 521685-1-ref.html
+== 523096-1.html 523096-1-ref.html