]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Extended a bit to test overflow on an outer region (NYI).
authorJeremias Maerki <jeremias@apache.org>
Fri, 18 Mar 2005 13:16:00 +0000 (13:16 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 18 Mar 2005 13:16:00 +0000 (13:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_KnuthStylePageBreaking@198510 13f79535-47bb-0310-9956-ffa450edef68

test/layoutengine/testcases/page-master3.xml

index 1eda8648d3779e8e26fd2323157328fb8bc119e4..a0fd0b7616b95fda353be17b98519b6af9fb0631 100644 (file)
@@ -29,8 +29,8 @@
           <fo:region-before background-color="lightgray" extent="20pt"/>
         </fo:simple-page-master>
         <fo:simple-page-master master-name="master2" page-width="5in" page-height="5in" margin-left="10pt" margin-top="20pt" margin-right="30pt" margin-bottom="40pt" background-color="rgb(100%, 90%, 90%)" reference-orientation="90">
-          <fo:region-body background-color="rgb(100%, 80%, 80%)" margin-top="20pt"/>
-          <fo:region-before background-color="lightgray" extent="20pt" margin-left="50pt"/>
+          <fo:region-body background-color="rgb(100%, 80%, 80%)" margin-top="35pt"/>
+          <fo:region-before background-color="lightgray" extent="20pt" margin-left="50pt" overflow="hidden"/>
         </fo:simple-page-master>
       </fo:layout-master-set>
       <fo:page-sequence master-reference="master1" white-space-collapse="true">
         </fo:flow>
       </fo:page-sequence>
       <fo:page-sequence master-reference="master2" white-space-collapse="true">
-        <fo:static-content flow-name="xsl-region-before">
-          <fo:block>region-before</fo:block>
+        <fo:static-content flow-name="xsl-region-before" widows="0" orphans="0">
+          <fo:block>region-before1</fo:block>
+          <fo:block>region-before2</fo:block>
+          <fo:block>region-before3</fo:block>
         </fo:static-content>
         <fo:flow flow-name="xsl-region-body">
           <fo:block>testing margin with reference-orientation="90"</fo:block>
@@ -66,8 +68,8 @@
     <eval expected="20000" xpath="//pageViewport[2]/page/regionViewport[1]/regionBefore/@bpda"/>
     <eval expected="300000" xpath="//pageViewport[2]/page/regionViewport[1]/regionBefore/block[1]/@ipda"/>
     <eval expected="14400" xpath="//pageViewport[2]/page/regionViewport[1]/regionBefore/block[1]/@bpda"/>
-    <eval expected="30000 20000 300000 300000" xpath="//pageViewport[2]/page/regionViewport[2]/@rect"/>
+    <eval expected="45000 20000 285000 300000" xpath="//pageViewport[2]/page/regionViewport[2]/@rect"/>
     <eval expected="300000" xpath="//pageViewport[2]/page/regionViewport[2]/regionBody/@ipda"/>
-    <eval expected="300000" xpath="//pageViewport[2]/page/regionViewport[2]/regionBody/@bpda"/>
+    <eval expected="285000" xpath="//pageViewport[2]/page/regionViewport[2]/regionBody/@bpda"/>
   </checks>
 </testcase>