aboutsummaryrefslogtreecommitdiffstats
path: root/test/events
diff options
context:
space:
mode:
authorGlenn Adams <gadams@apache.org>2012-04-17 16:15:44 +0000
committerGlenn Adams <gadams@apache.org>2012-04-17 16:15:44 +0000
commita915c74aa4d3bcad9448d1808e5baba10ba91e24 (patch)
tree0b2e38660d9d0a2e8575daf9120bd69794a06536 /test/events
parente67c4d1633a8b503ee75f393e8c2e69f31490645 (diff)
downloadxmlgraphics-fop-a915c74aa4d3bcad9448d1808e5baba10ba91e24.tar.gz
xmlgraphics-fop-a915c74aa4d3bcad9448d1808e5baba10ba91e24.zip
Bugzilla #53094: Convert block container overflow exception to event model, improving overflow property behavior.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1327157 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/events')
-rw-r--r--test/events/inline-level.fo6
-rw-r--r--test/events/viewport-overflow.fo18
2 files changed, 20 insertions, 4 deletions
diff --git a/test/events/inline-level.fo b/test/events/inline-level.fo
index 26a00acff..e415891ac 100644
--- a/test/events/inline-level.fo
+++ b/test/events/inline-level.fo
@@ -2,16 +2,14 @@
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="page"
- page-height="420pt" page-width="320pt" margin="10pt">
+ page-height="420pt" page-width="100pt" margin="10pt">
<fo:region-body background-color="#F0F0F0"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="page">
<fo:flow flow-name="xsl-region-body">
<fo:block>The following line overflows its container:</fo:block>
- <fo:block-container width="100pt" height="100pt" border="1pt solid black">
- <fo:block>ThisLineOverflowsItsContainer</fo:block>
- </fo:block-container>
+ <fo:block border="1pt solid black">ThisLineOverflowsItsContainer</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
diff --git a/test/events/viewport-overflow.fo b/test/events/viewport-overflow.fo
new file mode 100644
index 000000000..ac9dc76bb
--- /dev/null
+++ b/test/events/viewport-overflow.fo
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
+ <fo:layout-master-set>
+ <fo:simple-page-master page-width="10.0cm" page-height="10.0cm" master-name="testpage">
+ <fo:region-body />
+ </fo:simple-page-master>
+ </fo:layout-master-set>
+ <fo:page-sequence master-reference="testpage">
+ <fo:flow flow-name="xsl-region-body">
+ <fo:block-container overflow="error-if-overflow" position="absolute" height="20pt" width="40pt" left="30pt" top="20pt">
+ <fo:block>abcdefghijklmnopqrstuvwxyz</fo:block>
+ </fo:block-container>
+ <fo:block-container overflow="error-if-overflow" position="absolute" height="65pt" width="40pt" left="90pt" top="20pt">
+ <fo:block>abc def ghi jkl mno pqr stu vwx yz</fo:block>
+ </fo:block-container>
+ </fo:flow>
+ </fo:page-sequence>
+</fo:root>