diff options
author | Jeremias Maerki <jeremias@apache.org> | 2006-03-16 16:53:21 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2006-03-16 16:53:21 +0000 |
commit | 97a13831e8fce797ad4d321b778ba0af69d6eddf (patch) | |
tree | 33c259769bcde3047cabdac360d2d4bc722ffa04 /test | |
parent | ed32d52d2a09979c49e5c83dbe21d2bd11a91b32 (diff) | |
download | xmlgraphics-fop-97a13831e8fce797ad4d321b778ba0af69d6eddf.tar.gz xmlgraphics-fop-97a13831e8fce797ad4d321b778ba0af69d6eddf.zip |
Changed the way that text-align-last is calculated. Hopefully, this is it, now. Should fix a bug reported last week on fop-users.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@386379 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r-- | test/fotree/testcases/text-align.fo | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/test/fotree/testcases/text-align.fo b/test/fotree/testcases/text-align.fo index 66aae818b..56e29e7dc 100644 --- a/test/fotree/testcases/text-align.fo +++ b/test/fotree/testcases/text-align.fo @@ -24,14 +24,14 @@ </fo:layout-master-set> <fo:page-sequence master-reference="A4"> <fo:flow flow-name="xsl-region-body"> - <!--fo:block text-align="justify">Hello World! + <fo:block text-align="justify">Hello World! <test:assert property="text-align" expected="JUSTIFY"/> <test:assert property="text-align-last" expected="START"/> </fo:block> <fo:block text-align="justify" text-align-last="relative">Hello World! <test:assert property="text-align" expected="JUSTIFY"/> <test:assert property="text-align-last" expected="START"/> - </fo:block--> + </fo:block> <fo:block text-align="end">Hello World! <test:assert property="text-align" expected="END"/> <test:assert property="text-align-last" expected="END"/> @@ -49,11 +49,33 @@ <test:assert property="text-align-last" expected="JUSTIFY"/> </fo:block> <fo:block text-align="justify" text-align-last="justify"> + <!-- Checks inherited values --> <fo:block>Hello World! <test:assert property="text-align" expected="JUSTIFY"/> <test:assert property="text-align-last" expected="JUSTIFY"/> </fo:block> </fo:block> + <fo:block text-align="end"> + <fo:table table-layout="fixed" width="100%"> + <fo:table-column number-columns-repeated="2" column-width="50%"/> + <fo:table-body> + <fo:table-row> + <fo:table-cell> + <fo:block text-align="center">center + <test:assert property="text-align" expected="CENTER"/> + <test:assert property="text-align-last" expected="CENTER"/> + </fo:block> + </fo:table-cell> + <fo:table-cell> + <fo:block text-align="left">left + <test:assert property="text-align" expected="START"/> + <test:assert property="text-align-last" expected="START"/> + </fo:block> + </fo:table-cell> + </fo:table-row> + </fo:table-body> + </fo:table> + </fo:block> </fo:flow> </fo:page-sequence> </fo:root> |