aboutsummaryrefslogtreecommitdiffstats
path: root/test/layoutengine/standard-testcases/table_border_padding_2.xml
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-12-08 14:55:53 +0000
committerJeremias Maerki <jeremias@apache.org>2005-12-08 14:55:53 +0000
commit2f6fb03daf340a5a120dd9ed807f5ef3e04f8618 (patch)
tree8cf9937edf198a067b1e2e23ee60f3545e734a44 /test/layoutengine/standard-testcases/table_border_padding_2.xml
parent26df5d3099cf61227665a120fd55c4d5461265c7 (diff)
downloadxmlgraphics-fop-2f6fb03daf340a5a120dd9ed807f5ef3e04f8618.tar.gz
xmlgraphics-fop-2f6fb03daf340a5a120dd9ed807f5ef3e04f8618.zip
Bugfix: Areas for table-cells that are broken over more than one page are now generated even if all its content is already painted on a previous page. This fixes strange effects like a table grid that is not completely painted.
Some check in the test cases had to be adjusted because the indices weren't correct anymore, since now some previously missing areas are generated. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@355105 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/layoutengine/standard-testcases/table_border_padding_2.xml')
-rw-r--r--test/layoutengine/standard-testcases/table_border_padding_2.xml10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/layoutengine/standard-testcases/table_border_padding_2.xml b/test/layoutengine/standard-testcases/table_border_padding_2.xml
index 07b5cdc1c..84f7f91e9 100644
--- a/test/layoutengine/standard-testcases/table_border_padding_2.xml
+++ b/test/layoutengine/standard-testcases/table_border_padding_2.xml
@@ -39,7 +39,7 @@
<fo:table-column column-width="proportional-column-width(9)"/>
<fo:table-body>
<fo:table-row>
- <fo:table-cell background-color="yellow">
+ <fo:table-cell background-color="yellow" id="cell1a">
<fo:block>cell1</fo:block>
</fo:table-cell>
<fo:table-cell background-color="orange">
@@ -69,7 +69,7 @@ and threw it up on high and caught it; and this ball was her favorite plaything.
<fo:table-column column-width="proportional-column-width(9)"/>
<fo:table-body>
<fo:table-row>
- <fo:table-cell background-color="yellow">
+ <fo:table-cell background-color="yellow" id="cell1b">
<fo:block>cell1</fo:block>
</fo:table-cell>
<fo:table-cell background-color="orange">
@@ -199,5 +199,11 @@ and threw it up on high and caught it; and this ball was her favorite plaything.
<eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-after"/>
<eval expected="20000" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-after"/>
+
+ <!-- Additional check: areas for table-cells which are finished but its row continues on the subsequent page -->
+ <true xpath="boolean(//pageViewport[@nr=1]//block[@prod-id='cell1a'])"/>
+ <true xpath="boolean(//pageViewport[@nr=2]//block[@prod-id='cell1a'])"/>
+ <true xpath="boolean(//pageViewport[@nr=3]//block[@prod-id='cell1b'])"/>
+ <true xpath="boolean(//pageViewport[@nr=4]//block[@prod-id='cell1b'])"/>
</checks>
</testcase>