aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2006-03-24 16:50:59 +0000
committerJeremias Maerki <jeremias@apache.org>2006-03-24 16:50:59 +0000
commit00b7d74ec538159f41e2d64a30b6da5d819cabbb (patch)
treee7174628824daf04d1854d7b27545fa8371b62d3
parent5f887734163d8cb5bb749176eed8345a0826b4a2 (diff)
downloadxmlgraphics-fop-00b7d74ec538159f41e2d64a30b6da5d819cabbb.tar.gz
xmlgraphics-fop-00b7d74ec538159f41e2d64a30b6da5d819cabbb.zip
Demonstrating negative last-line-end-indent.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@388577 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--test/layoutengine/standard-testcases/block_last-line-end-indent.xml10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/layoutengine/standard-testcases/block_last-line-end-indent.xml b/test/layoutengine/standard-testcases/block_last-line-end-indent.xml
index 9ea768b1b..a12b0b5f4 100644
--- a/test/layoutengine/standard-testcases/block_last-line-end-indent.xml
+++ b/test/layoutengine/standard-testcases/block_last-line-end-indent.xml
@@ -40,6 +40,11 @@ In olden times when wishing still helped one, there lived a king whose daughters
were all beautiful; and the youngest was so beautiful that the sun itself, which
has seen so much, was astonished whenever it shone in her face.
</fo:block>
+ <fo:block last-line-end-indent="-20pt" end-indent="20pt" text-align="justify" text-align-last="justify" id="lastneg">
+In olden times when wishing still helped one, there lived a king whose daughters
+were all beautiful; and the youngest was so beautiful that the sun itself, which
+has seen so much, was astonished whenever it shone in her face.
+ </fo:block>
<fo:block last-line-end-indent="50%" text-align="justify" text-align-last="justify" id="justify50">
In olden times when wishing still helped one, there lived a king whose daughters
were all beautiful; and the youngest was so beautiful that the sun itself, which
@@ -74,6 +79,11 @@ the nested block should be indented as well.
<eval expected="360000" xpath="//block[@prod-id='justify']/lineArea[3]/text/@ipd"/>
<eval expected="340000" xpath="//block[@prod-id='justify']/lineArea[4]/text/@ipd"/>
+ <eval expected="340000" xpath="//block[@prod-id='last0']/lineArea[1]/text/@ipd"/>
+ <eval expected="340000" xpath="//block[@prod-id='last0']/lineArea[2]/text/@ipd"/>
+ <eval expected="340000" xpath="//block[@prod-id='last0']/lineArea[3]/text/@ipd"/>
+ <eval expected="360000" xpath="//block[@prod-id='last0']/lineArea[4]/text/@ipd"/>
+
<eval expected="360000" xpath="//block[@prod-id='justify50']/lineArea[1]/text/@ipd"/>
<eval expected="360000" xpath="//block[@prod-id='justify50']/lineArea[2]/text/@ipd"/>
<eval expected="360000" xpath="//block[@prod-id='justify50']/lineArea[3]/text/@ipd"/>