aboutsummaryrefslogtreecommitdiffstats
path: root/test/fotree
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2006-01-31 22:09:36 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2006-01-31 22:09:36 +0000
commit50782f6e6b56562db5bd8e54814affae6edb50b8 (patch)
tree9bddf1e46842f80d2e3991f7609e2279819f71c4 /test/fotree
parentf221e2cad254bee4af5304ae7ed0fda32dd61a29 (diff)
downloadxmlgraphics-fop-50782f6e6b56562db5bd8e54814affae6edb50b8.tar.gz
xmlgraphics-fop-50782f6e6b56562db5bd8e54814affae6edb50b8.zip
Implementation for from-table-column(). See: bugzilla 38282
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@373922 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/fotree')
-rwxr-xr-xtest/fotree/disabled-testcases.xml6
-rw-r--r--test/fotree/testcases/properties_omitted_propertyname.fo31
2 files changed, 36 insertions, 1 deletions
diff --git a/test/fotree/disabled-testcases.xml b/test/fotree/disabled-testcases.xml
index 1ae6f553a..a574d39f5 100755
--- a/test/fotree/disabled-testcases.xml
+++ b/test/fotree/disabled-testcases.xml
@@ -31,4 +31,10 @@
<file>inline-progression-dimension_negative.fo</file>
<description>The code currently doesn't set negative values to 0mpt as mandated by the spec.</description>
</testcase>
+ <testcase>
+ <name>Markers and core function evaluation</name>
+ <file>from-table-column_marker.fo</file>
+ <description>The code currently evaluates this function according to the column in which the
+ marker appearsin the source document, rather than the column it is retrieved in.</description>
+ </testcase>
</disabled-testcases>
diff --git a/test/fotree/testcases/properties_omitted_propertyname.fo b/test/fotree/testcases/properties_omitted_propertyname.fo
index 3ded0a105..77ee13458 100644
--- a/test/fotree/testcases/properties_omitted_propertyname.fo
+++ b/test/fotree/testcases/properties_omitted_propertyname.fo
@@ -61,7 +61,36 @@
</fo:block>
</fo:block>
</fo:block>
- <!-- from-table-column (not implemented) -->
+ <fo:table border-collapse="separate" table-layout="fixed" width="100%">
+ <fo:table-column column-width="proportional-column-width(1)"
+ text-align="start" />
+ <fo:table-column column-width="proportional-column-width(1)"
+ text-align="center" />
+ <fo:table-column column-width="proportional-column-width(1)"
+ text-align="end" />
+ <fo:table-body>
+ <fo:table-cell starts-row="true">
+ <fo:block text-align="from-table-column()">
+ <test:assert property="text-align" expected="START" />
+ Start-aligned
+ </fo:block>
+ </fo:table-cell>
+ <fo:table-cell text-align="from-table-column()" column-number="3">
+ <test:assert property="text-align" expected="END" />
+ <fo:block>
+ <test:assert property="text-align" expected="END" />
+ End-aligned
+ </fo:block>
+ </fo:table-cell>
+ <fo:table-cell column-number="2">
+ <fo:block text-align="from-table-column()">
+ <test:assert property="text-align" expected="CENTER" />
+ Center-aligned
+ </fo:block>
+ </fo:table-cell>
+ </fo:table-body>
+ </fo:table>
+
<!-- merge-property-value (not implemented) -->
</fo:flow>
</fo:page-sequence>