aboutsummaryrefslogtreecommitdiffstats
path: root/test/layoutengine
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2007-12-13 18:28:56 +0000
committerVincent Hennebert <vhennebert@apache.org>2007-12-13 18:28:56 +0000
commit7ed67aba5bec4a02c3a9ef237e42d6a3d6136808 (patch)
treeac3727a8a449f6aaab178c13209109f7801ac3e2 /test/layoutengine
parentecf8547e04c4994fcb5017351ec63203f344cf7e (diff)
downloadxmlgraphics-fop-7ed67aba5bec4a02c3a9ef237e42d6a3d6136808.tar.gz
xmlgraphics-fop-7ed67aba5bec4a02c3a9ef237e42d6a3d6136808.zip
Fixed the handling of columns in the border resolution, especially in case of column-spanning cells
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@603968 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/layoutengine')
-rw-r--r--test/layoutengine/standard-testcases/table_border-collapse_collapse_resolution.xml45
-rw-r--r--test/layoutengine/standard-testcases/table_border-collapse_collapse_resolution_no-col.xml3
2 files changed, 47 insertions, 1 deletions
diff --git a/test/layoutengine/standard-testcases/table_border-collapse_collapse_resolution.xml b/test/layoutengine/standard-testcases/table_border-collapse_collapse_resolution.xml
index 6aa054d7d..20cabace2 100644
--- a/test/layoutengine/standard-testcases/table_border-collapse_collapse_resolution.xml
+++ b/test/layoutengine/standard-testcases/table_border-collapse_collapse_resolution.xml
@@ -166,6 +166,30 @@
</fo:table-body>
</fo:table>
+ <!-- table 3 -->
+ <fo:block space-before="10pt" space-after="10pt">Between tables</fo:block>
+ <fo:table table-layout="fixed" width="200pt" border-collapse="collapse">
+ <fo:table-column column-width="proportional-column-width(1)"
+ border="6pt solid blue"/>
+ <fo:table-column column-width="proportional-column-width(1)"
+ border="8pt solid red"/>
+ <fo:table-body>
+ <fo:table-row>
+ <fo:table-cell number-columns-spanned="2" border="1pt solid black">
+ <fo:block>Cell 1.1</fo:block>
+ </fo:table-cell>
+ </fo:table-row>
+ <fo:table-row>
+ <fo:table-cell border="1pt solid black">
+ <fo:block>Cell 2.1</fo:block>
+ </fo:table-cell>
+ <fo:table-cell border="1pt solid black">
+ <fo:block>Cell 2.2</fo:block>
+ </fo:table-cell>
+ </fo:table-row>
+ </fo:table-body>
+ </fo:table>
+
<fo:block>After the tables</fo:block>
</fo:flow>
</fo:page-sequence>
@@ -333,5 +357,26 @@
<eval expected="(solid,#ffff00,1000,collapse-inner)" xpath="//flow/block[4]/block[22]/@border-start"/>
<eval expected="(solid,#000000,10000,collapse-outer)" xpath="//flow/block[4]/block[22]/@border-end"/>
+ <!-- table 3 -->
+ <!-- cell 1.1 -->
+ <eval expected="(solid,#0000ff,6000,collapse-outer)" xpath="//flow/block[6]/block[1]/@border-before"/>
+ <eval expected="(solid,#000000,1000,collapse-inner)" xpath="//flow/block[6]/block[1]/@border-after"/>
+ <eval expected="(solid,#0000ff,6000,collapse-outer)" xpath="//flow/block[6]/block[1]/@border-start"/>
+ <eval expected="" xpath="//flow/block[6]/block[1]/@border-end"/>
+ <eval expected="(solid,#ff0000,8000,collapse-outer)" xpath="//flow/block[6]/block[2]/@border-before"/>
+ <eval expected="(solid,#000000,1000,collapse-inner)" xpath="//flow/block[6]/block[2]/@border-after"/>
+ <eval expected="" xpath="//flow/block[6]/block[2]/@border-start"/>
+ <eval expected="(solid,#ff0000,8000,collapse-outer)" xpath="//flow/block[6]/block[2]/@border-end"/>
+ <!-- cell 2.1 -->
+ <eval expected="(solid,#000000,1000,collapse-inner)" xpath="//flow/block[6]/block[4]/@border-before"/>
+ <eval expected="(solid,#0000ff,6000,collapse-outer)" xpath="//flow/block[6]/block[4]/@border-after"/>
+ <eval expected="(solid,#0000ff,6000,collapse-outer)" xpath="//flow/block[6]/block[4]/@border-start"/>
+ <eval expected="(solid,#ff0000,8000,collapse-inner)" xpath="//flow/block[6]/block[4]/@border-end"/>
+ <!-- cell 2.2 -->
+ <eval expected="(solid,#000000,1000,collapse-inner)" xpath="//flow/block[6]/block[5]/@border-before"/>
+ <eval expected="(solid,#ff0000,8000,collapse-outer)" xpath="//flow/block[6]/block[5]/@border-after"/>
+ <eval expected="(solid,#ff0000,8000,collapse-inner)" xpath="//flow/block[6]/block[5]/@border-start"/>
+ <eval expected="(solid,#ff0000,8000,collapse-outer)" xpath="//flow/block[6]/block[5]/@border-end"/>
+
</checks>
</testcase>
diff --git a/test/layoutengine/standard-testcases/table_border-collapse_collapse_resolution_no-col.xml b/test/layoutengine/standard-testcases/table_border-collapse_collapse_resolution_no-col.xml
index b9b5c49b9..c0538b2e0 100644
--- a/test/layoutengine/standard-testcases/table_border-collapse_collapse_resolution_no-col.xml
+++ b/test/layoutengine/standard-testcases/table_border-collapse_collapse_resolution_no-col.xml
@@ -20,7 +20,8 @@
<!--
NOTE: this test is a copy of table_border-collapse_collapse_resolution.xml, with all of the
fo:table-column elements removed. The checks for the borders in the second column of the first
- table have been changed accordingly (no more column which plays in the resolution).
+ table have been changed accordingly (no more column which plays in the resolution), and the third
+ table has been removed (not applicable when there are no columns).
-->
<testcase>
<info>