Fix these tests to not break at smaller window widths or larger fonts. a=test-only default tip
authorBoris Zbarsky <bzbarsky@mit.edu>
Fri, 18 Mar 2011 22:15:14 -0400
changeset 63446 8618a149ea2e
parent 63445 23455773db73
push id1
push userroot
push dateTue, 10 Dec 2013 15:46:25 +0000
reviewerstest-only
milestone2.0b13pre
Fix these tests to not break at smaller window widths or larger fonts. a=test-only
layout/reftests/table-anonymous-boxes/3-blocks-ref.html
layout/reftests/table-anonymous-boxes/3-tables-ref.html
layout/reftests/table-anonymous-boxes/blocks-divide-tables-1.html
layout/reftests/table-anonymous-boxes/blocks-divide-tables-2.html
layout/reftests/table-anonymous-boxes/infer-cells-1.html
layout/reftests/table-anonymous-boxes/white-space-1.html
--- a/layout/reftests/table-anonymous-boxes/3-blocks-ref.html
+++ b/layout/reftests/table-anonymous-boxes/3-blocks-ref.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html>
 <html>
-  <body style="font-family: monospace">
+  <body style="font-family: monospace; white-space: nowrap">
     <div>
       Row 1, Col 1Row 1, Col 2Row 1, Col 3
     </div>
     <div>
       Row 22, Col 1Row 22, Col 2Row 22, Col 3
     </div>
     <div>
       Row 333, Col 1Row 333, Col 2Row 333, Col 3
--- a/layout/reftests/table-anonymous-boxes/3-tables-ref.html
+++ b/layout/reftests/table-anonymous-boxes/3-tables-ref.html
@@ -1,11 +1,11 @@
 <!DOCTYPE html>
 <html>
-  <body style="font-family: monospace">
+  <body style="font-family: monospace; white-space: nowrap">
     <table cellpadding="0" cellspacing="0" style="margin: 0; padding: 0; border: none">
       <tr>
         <td>Row 1, Col 1</td>
         <td>Row 1, Col 2</td>
         <td>Row 1, Col 3</td>
       </tr>
     </table>
     <table cellpadding="0" cellspacing="0" style="margin: 0; padding: 0; border: none">
--- a/layout/reftests/table-anonymous-boxes/blocks-divide-tables-1.html
+++ b/layout/reftests/table-anonymous-boxes/blocks-divide-tables-1.html
@@ -1,16 +1,16 @@
 <!DOCTYPE html>
 <html>
     <title>CSS 2.1 Test Suite: anonymous table boxes</title>
     <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
     <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
     <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes"/>
     <meta name="flags" content="" />
-  <body style="font-family: monospace">
+  <body style="font-family: monospace; white-space: nowrap">
     <span style="display: block"> 
       <span style="display: table-cell">Row 1, Col 1</span>
       <span style="display: table-cell">Row 1, Col 2</span>
       <span style="display: table-cell">Row 1, Col 3</span>
     </span>
     <span style="display: block"> 
       <span style="display: table-cell">Row 22, Col 1</span>
       <span style="display: table-cell">Row 22, Col 2</span>
--- a/layout/reftests/table-anonymous-boxes/blocks-divide-tables-2.html
+++ b/layout/reftests/table-anonymous-boxes/blocks-divide-tables-2.html
@@ -1,16 +1,16 @@
 <!DOCTYPE html>
 <html>
     <title>CSS 2.1 Test Suite: anonymous table boxes</title>
     <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
     <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
     <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes"/>
     <meta name="flags" content="" />
-  <body style="font-family: monospace">
+  <body style="font-family: monospace; white-space: nowrap">
     <span style="display: table-row"> 
       <span style="display: table-cell">Row 1, Col 1</span>
       <span style="display: table-cell">Row 1, Col 2</span>
       <span style="display: table-cell">Row 1, Col 3</span>
     </span>
     <span style="display: block"> 
       <span style="display: table-cell">Row 22, Col 1</span>
       <span style="display: table-cell">Row 22, Col 2</span>
--- a/layout/reftests/table-anonymous-boxes/infer-cells-1.html
+++ b/layout/reftests/table-anonymous-boxes/infer-cells-1.html
@@ -1,16 +1,16 @@
 <!DOCTYPE html>
 <html>
     <title>CSS 2.1 Test Suite: anonymous table boxes</title>
     <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" />
     <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" />
     <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes"/>
     <meta name="flags" content="" />
-  <body style="font-family: monospace">
+  <body style="font-family: monospace; white-space: nowrap">
     <!-- The test in the first row might not be correct, depending on spec
          clarifications -->
     <span style="display: table-row"> 
       <span>Row 1,</span>
       <span>Col 1Row 1,</span>
       <span>Col 2Row 1,</span>
       <span>Col 3</span>
     </span>
--- a/layout/reftests/table-anonymous-boxes/white-space-1.html
+++ b/layout/reftests/table-anonymous-boxes/white-space-1.html
@@ -9,17 +9,17 @@
     <script>
       function doTest() {
         var n = document.getElementById("t").nextSibling;
         n.data = "Row 22, Col 1Row 22, Col 2Row 22, Col 3";
         document.documentElement.className = "";
       }
     </script>
   </head>
-  <body style="font-family: monospace" onload="doTest()">
+  <body style="font-family: monospace; white-space: nowrap" onload="doTest()">
     <span style="display: table-cell">Row 1, Col 1</span>
     <span style="display: table-cell">Row 1, Col 2</span>
     <span style="display: table-cell" id="t">Row 1, Col 3</span>
     <span style="display: table-cell">Row 333, Col 1</span>
     <span style="display: table-cell">Row 333, Col 2</span>
     <span style="display: table-cell">Row 333, Col 3</span>
   </body>
 </html>