xmlgraphics-fop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r328938 - /xmlgraphics/fop/trunk/test/layoutengine/testcases/table_bug37270.xml
Date Thu, 27 Oct 2005 19:27:15 GMT
Author: jeremias
Date: Thu Oct 27 12:27:11 2005
New Revision: 328938

URL: http://svn.apache.org/viewcvs?rev=328938&view=rev
Log:
The test case can be extended a little to also show another bug in addition to the IndexOutOfBoundsException.
The code runs into problems when row 1 starts to paint content when row 0 has grid units that
haven't even started contributing parts.

Modified:
    xmlgraphics/fop/trunk/test/layoutengine/testcases/table_bug37270.xml

Modified: xmlgraphics/fop/trunk/test/layoutengine/testcases/table_bug37270.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/test/layoutengine/testcases/table_bug37270.xml?rev=328938&r1=328937&r2=328938&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/testcases/table_bug37270.xml (original)
+++ xmlgraphics/fop/trunk/test/layoutengine/testcases/table_bug37270.xml Thu Oct 27 12:27:11
2005
@@ -34,19 +34,21 @@
             <fo:table-column/>
             <fo:table-column/>
             <fo:table-column/>
+            <fo:table-column/>
             <fo:table-body>
               <fo:table-row>
-                <fo:table-cell number-rows-spanned="2">
+                <!-- Note: the padding-top caused a NullPointerException -->
+                <fo:table-cell padding-top="1.2cm" number-rows-spanned="2">
                   <fo:block>row 1 col 1</fo:block>
                 </fo:table-cell>
                 <!-- absent table-cells in first row -->
               </fo:table-row>
               <fo:table-row>
-                <fo:table-cell>
+                <fo:table-cell number-columns-spanned="2">
                   <fo:block>row 2 col 2</fo:block>
                 </fo:table-cell>
                 <fo:table-cell>
-                  <fo:block>Row 2 col 3</fo:block>
+                  <fo:block>Row 2 col 4</fo:block>
                 </fo:table-cell>
               </fo:table-row>
             </fo:table-body>
@@ -56,7 +58,7 @@
     </fo:root>
   </fo>
   <checks>
-    <!-- Simply check that FOP doesn't fail with an IndexOutOfBoundsException -->
+    <!-- Simply check that FOP doesn't fail with an IndexOutOfBoundsException or an NPE
-->
     <eval expected="1" xpath="count(//pageViewport)"/>
   </checks>
 </testcase>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org


Mime
View raw message