Add mroot and bevelled mfrac width tests.
authorkarlt+@karlt.net
Thu, 27 Mar 2008 15:52:58 -0700
changeset 13647 76fb151fc96affe62fbc90af1e4aef85f93ed5f5
parent 13646 124a705ae6973c6cd304c39be0c6522060c03e60
child 13648 40cd165b2c37c8518a57624f9fd08dc826d7f06e
push idunknown
push userunknown
push dateunknown
milestone1.9pre
Add mroot and bevelled mfrac width tests.
layout/reftests/mathml/table-width-1-ref.xhtml
layout/reftests/mathml/table-width-1.xhtml
--- a/layout/reftests/mathml/table-width-1-ref.xhtml
+++ b/layout/reftests/mathml/table-width-1-ref.xhtml
@@ -21,49 +21,61 @@
 	    <mn>3</mn>
 	    <mo>-</mo>
 	    <mo>5</mo>
 	  </msqrt>
 	</mphantom>
       </math>
     </td>
   </table>
-  <!-- uncomment when bug 363240 attachment 311725 is checked in: table>
+  <table>
     <td>
       <math xmlns="http://www.w3.org/1998/Math/MathML">
 	<mphantom>
 	  <mroot>
-	    <mtable>
-	      <mtr><mtd><mn>8</mn></mtd></mtr>
-	      <mtr><mtd><mn>9</mn></mtd></mtr>
-	    </mtable>
-	    <mn>6</mn>
+	    <mfrac>
+	      <mn>8</mn>
+	      <mn>90</mn>
+	    </mfrac>
+	    <mn>61</mn>
 	  </mroot>
 	</mphantom>
       </math>
     </td>
-  </table-->
+  </table>
   <table>
     <td>
       <math xmlns="http://www.w3.org/1998/Math/MathML">
 	<mphantom>
 	  <mfenced>
-	    <mfrac>
-	      <mn>0</mn>
-	      <mn>90</mn>
-	    </mfrac>
+	    <mtable>
+	      <mtr><mtd><mn>0</mn></mtd></mtr>
+	      <mtr><mtd><mn>80</mn></mtd></mtr>
+	    </mtable>
 	  </mfenced>
 	</mphantom>
       </math>
     </td>
   </table>
   <table>
     <td>
       <math xmlns="http://www.w3.org/1998/Math/MathML">
 	<mphantom>
+	  <mfrac bevelled="true">
+	    <mn>82</mn>
+	    <mn>28</mn>
+	  </mfrac>
+	</mphantom>
+      </math>
+    </td>
+  </table>
+  <table>
+    <td>
+      <math xmlns="http://www.w3.org/1998/Math/MathML">
+	<mphantom>
 	  <mo>{</mo>
 	  <mtable>
 	    <mtr><mtd><mn>0</mn></mtd></mtr>
 	    <mtr><mtd><mn>5</mn></mtd></mtr>
 	    <mtr><mtd><mn>9</mn></mtd></mtr>
 	  </mtable>
 	  <mo>}</mo>
 	</mphantom>
--- a/layout/reftests/mathml/table-width-1.xhtml
+++ b/layout/reftests/mathml/table-width-1.xhtml
@@ -22,44 +22,54 @@
 	    <mn>3</mn>
 	    <mo>-</mo>
 	    <mo>5</mo>
 	  </msqrt>
 	</mrow>
       </math>
     </td>
   </table>
-  <!-- uncomment when bug 363240 attachment 311725 is checked in: table>
+  <table>
     <td>
       <math xmlns="http://www.w3.org/1998/Math/MathML">
 	<mroot>
-	  <mtable>
-	    <mtr><mtd><mn>8</mn></mtd></mtr>
-	    <mtr><mtd><mn>9</mn></mtd></mtr>
-	  </mtable>
-	  <mn>6</mn>
+	  <mfrac>
+	    <mn>8</mn>
+	    <mn>90</mn>
+	  </mfrac>
+	  <mn>61</mn>
 	</mroot>
       </math>
     </td>
-  </table-->
+  </table>
   <table>
     <td>
       <math xmlns="http://www.w3.org/1998/Math/MathML">
 	<mfenced>
-	  <mfrac>
-	    <mn>0</mn>
-	    <mn>90</mn>
-	  </mfrac>
+	  <mtable>
+	    <mtr><mtd><mn>0</mn></mtd></mtr>
+	    <mtr><mtd><mn>80</mn></mtd></mtr>
+	  </mtable>
 	</mfenced>
       </math>
     </td>
   </table>
   <table>
     <td>
       <math xmlns="http://www.w3.org/1998/Math/MathML">
+	<mfrac bevelled="true">
+	  <mn>82</mn>
+	  <mn>28</mn>
+	</mfrac>
+      </math>
+    </td>
+  </table>
+  <table>
+    <td>
+      <math xmlns="http://www.w3.org/1998/Math/MathML">
 	<mrow>
 	  <mo>{</mo>
 	  <mtable>
 	    <mtr><mtd><mn>0</mn></mtd></mtr>
 	    <mtr><mtd><mn>5</mn></mtd></mtr>
 	    <mtr><mtd><mn>9</mn></mtd></mtr>
 	  </mtable>
 	  <mo>}</mo>