diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2013-10-24 16:26:26 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2013-10-24 16:26:26 +0000 |
commit | 5530937d762b0a15b48940c544a157769b1137a0 (patch) | |
tree | e4819917e9aefffed28b7b1646a686fa33572550 /test | |
parent | c925990c7c290876d6857a4cc02e362b0ed6ca72 (diff) | |
download | xmlgraphics-fop-5530937d762b0a15b48940c544a157769b1137a0.tar.gz xmlgraphics-fop-5530937d762b0a15b48940c544a157769b1137a0.zip |
Issue a warning if the content of an inline-container overflows it in the block-progression-direction
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_InlineContainer@1535430 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r-- | test/layoutengine/standard-testcases/inline-container_auto-ipd.xml | 2 | ||||
-rw-r--r-- | test/layoutengine/standard-testcases/inline-container_bpd.xml | 12 |
2 files changed, 12 insertions, 2 deletions
diff --git a/test/layoutengine/standard-testcases/inline-container_auto-ipd.xml b/test/layoutengine/standard-testcases/inline-container_auto-ipd.xml index 48f5cd1cf..0833d7f0d 100644 --- a/test/layoutengine/standard-testcases/inline-container_auto-ipd.xml +++ b/test/layoutengine/standard-testcases/inline-container_auto-ipd.xml @@ -42,7 +42,7 @@ <fo:flow flow-name="xsl-region-body"> <fo:block-container space-before="10pt" start-indent="100pt" width="100pt"> <fo:block start-indent="0"> - Before: <fo:inline-container height="20pt"> + Before: <fo:inline-container> <fo:block>Inside the inline-container.</fo:block> </fo:inline-container> After. </fo:block> diff --git a/test/layoutengine/standard-testcases/inline-container_bpd.xml b/test/layoutengine/standard-testcases/inline-container_bpd.xml index 0a9d87442..bd2dfdf9e 100644 --- a/test/layoutengine/standard-testcases/inline-container_bpd.xml +++ b/test/layoutengine/standard-testcases/inline-container_bpd.xml @@ -37,10 +37,20 @@ </fo:inline-container> After.</fo:block> </fo:flow> </fo:page-sequence> + <fo:page-sequence master-reference="page"> + <fo:flow flow-name="xsl-region-body"> + <fo:block>Before: <fo:inline-container width="70pt" height="35pt" overflow="hidden"> + <fo:block>This text overflows the inline-container in the + block-progression-direction.</fo:block> + </fo:inline-container> After.</fo:block> + </fo:flow> + </fo:page-sequence> </fo:root> </fo> <checks> - <eval expected="40000" xpath="//viewport/@bpd"/> + <eval expected="40000" xpath="//pageSequence[1]//viewport/@bpd"/> + <eval expected="35000" xpath="//pageSequence[2]//viewport/@bpd"/> + <true xpath="//pageSequence[2]//viewport/@clip"/> </checks> </testcase> |