aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-10-27 19:27:11 +0000
committerJeremias Maerki <jeremias@apache.org>2005-10-27 19:27:11 +0000
commit23c5e9457b571ea3507021f9daf8133229199215 (patch)
tree0e67d0f76ed485d4efcf5ba153dd1cbad6595b36
parent297be867a7714f4c0a10a3f1272215cb138a6e19 (diff)
downloadxmlgraphics-fop-23c5e9457b571ea3507021f9daf8133229199215.tar.gz
xmlgraphics-fop-23c5e9457b571ea3507021f9daf8133229199215.zip
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.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@328938 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--test/layoutengine/testcases/table_bug37270.xml10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/layoutengine/testcases/table_bug37270.xml b/test/layoutengine/testcases/table_bug37270.xml
index 6ea958feb..56d87e7aa 100644
--- a/test/layoutengine/testcases/table_bug37270.xml
+++ b/test/layoutengine/testcases/table_bug37270.xml
@@ -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>