layout/reftests/mathml/mtable-columnalign-single-mtable-dynamic.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/mathml/mtable-columnalign-single-mtable-dynamic.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,146 @@
     1.4 +<!DOCTYPE>
     1.5 +<html class="reftest-wait">
     1.6 +  <head>
     1.7 +    <title>Test MathML columnalign</title>
     1.8 +    <script type="text/javascript">
     1.9 +      function doTest()
    1.10 +      {
    1.11 +        var table1 = document.getElementById("table1");
    1.12 +        var table2 = document.getElementById("table2");
    1.13 +        var table3 = document.getElementById("table3");
    1.14 +
    1.15 +        // Table 1 setup
    1.16 +        table1.setAttribute("columnalign", "left");
    1.17 +        // Table 2 setup
    1.18 +        table2.setAttribute("columnalign", "center");
    1.19 +        // Table 3 setup
    1.20 +        table3.setAttribute("columnalign", "right");
    1.21 +
    1.22 +        document.documentElement.removeAttribute("class");
    1.23 +      }
    1.24 +      window.addEventListener("MozReftestInvalidate", doTest, false);
    1.25 +    </script>
    1.26 +  </head>
    1.27 +  <body>
    1.28 +    <b>columnalign="left"</b> <br />
    1.29 +    <math>
    1.30 +      <mstyle>
    1.31 +        <mtable id="table1">
    1.32 +          <mtr>
    1.33 +            <mtd>
    1.34 +              <mtext>123</mtext>
    1.35 +            </mtd>
    1.36 +            <mtd>
    1.37 +              <mtext>123</mtext>
    1.38 +            </mtd>
    1.39 +            <mtd>
    1.40 +              <mtext>123</mtext>
    1.41 +            </mtd>
    1.42 +          </mtr>
    1.43 +          <mtr>
    1.44 +            <mtd>
    1.45 +              <mtext>12345</mtext>
    1.46 +            </mtd>
    1.47 +            <mtd>
    1.48 +              <mtext>12345</mtext>
    1.49 +            </mtd>
    1.50 +            <mtd>
    1.51 +              <mtext>12345</mtext>
    1.52 +            </mtd>
    1.53 +          </mtr>
    1.54 +          <mtr>
    1.55 +            <mtd>
    1.56 +              <mtext>1234567</mtext>
    1.57 +            </mtd>
    1.58 +            <mtd>
    1.59 +              <mtext>1234567</mtext>
    1.60 +            </mtd>
    1.61 +            <mtd>
    1.62 +            <mtext>1234567</mtext>
    1.63 +            </mtd>
    1.64 +          </mtr>
    1.65 +        </mtable>
    1.66 +      </mstyle>
    1.67 +    </math> <br />
    1.68 +    <b>columnalign="center"</b> <br />
    1.69 +    <math>
    1.70 +      <mstyle>
    1.71 +        <mtable id="table2">
    1.72 +          <mtr>
    1.73 +            <mtd>
    1.74 +              <mtext>123</mtext>
    1.75 +            </mtd>
    1.76 +            <mtd>
    1.77 +              <mtext>123</mtext>
    1.78 +            </mtd>
    1.79 +            <mtd>
    1.80 +              <mtext>123</mtext>
    1.81 +            </mtd>
    1.82 +          </mtr>
    1.83 +          <mtr>
    1.84 +            <mtd>
    1.85 +              <mtext>12345</mtext>
    1.86 +            </mtd>
    1.87 +            <mtd>
    1.88 +              <mtext>12345</mtext>
    1.89 +            </mtd>
    1.90 +            <mtd>
    1.91 +              <mtext>12345</mtext>
    1.92 +            </mtd>
    1.93 +          </mtr>
    1.94 +          <mtr>
    1.95 +            <mtd>
    1.96 +              <mtext>1234567</mtext>
    1.97 +            </mtd>
    1.98 +            <mtd>
    1.99 +              <mtext>1234567</mtext>
   1.100 +            </mtd>
   1.101 +            <mtd>
   1.102 +            <mtext>1234567</mtext>
   1.103 +            </mtd>
   1.104 +          </mtr>
   1.105 +        </mtable>
   1.106 +      </mstyle>
   1.107 +    </math> <br />
   1.108 +    <b>columnalign="right"</b> <br />
   1.109 +    <math>
   1.110 +      <mstyle>
   1.111 +        <mtable id="table3">
   1.112 +          <mtr>
   1.113 +            <mtd>
   1.114 +              <mtext>123</mtext>
   1.115 +            </mtd>
   1.116 +            <mtd>
   1.117 +              <mtext>123</mtext>
   1.118 +            </mtd>
   1.119 +            <mtd>
   1.120 +              <mtext>123</mtext>
   1.121 +            </mtd>
   1.122 +          </mtr>
   1.123 +          <mtr>
   1.124 +            <mtd>
   1.125 +              <mtext>12345</mtext>
   1.126 +            </mtd>
   1.127 +            <mtd>
   1.128 +              <mtext>12345</mtext>
   1.129 +            </mtd>
   1.130 +            <mtd>
   1.131 +              <mtext>12345</mtext>
   1.132 +            </mtd>
   1.133 +          </mtr>
   1.134 +          <mtr>
   1.135 +            <mtd>
   1.136 +              <mtext>1234567</mtext>
   1.137 +            </mtd>
   1.138 +            <mtd>
   1.139 +              <mtext>1234567</mtext>
   1.140 +            </mtd>
   1.141 +            <mtd>
   1.142 +            <mtext>1234567</mtext>
   1.143 +            </mtd>
   1.144 +          </mtr>
   1.145 +        </mtable>
   1.146 +      </mstyle>
   1.147 +    </math>
   1.148 +  </body>
   1.149 +</html>

mercurial