]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
The checks were wrong because of the leading linefeed. Also, the space-before is...
authorJeremias Maerki <jeremias@apache.org>
Thu, 3 Feb 2005 08:22:42 +0000 (08:22 +0000)
committerJeremias Maerki <jeremias@apache.org>
Thu, 3 Feb 2005 08:22:42 +0000 (08:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198369 13f79535-47bb-0310-9956-ffa450edef68

test/layoutengine/testcases/normal-breaking3.xml

index d0e071d9fbb3b5dfb9d20424c1fc40c8a025a851..b8dc2fc55768614e5c828e6fa8a9ed90230b31ae 100644 (file)
       </fo:layout-master-set>
       <fo:page-sequence master-reference="simple">
         <fo:flow flow-name="xsl-region-body">
-          <fo:block line-height="10pt" space-before.optimum="5cm" 
+          <fo:block-container height="5cm">
+            <fo:block/>
+          </fo:block-container>
+          <fo:block line-height="10pt" background-color="orange"
             white-space-collapse="false" white-space-treatment="preserve" linefeed-treatment="preserve" wrap-option="no-wrap">
 line1
 line2
@@ -43,10 +46,11 @@ line3
   </fo>
   <checks>
     <!-- contents must be broken to the next page to show the bug. -->
-    <true xpath="boolean(//pageViewport[2])"/>
-    <eval expected="0" xpath="count(//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea)"/>
-    <eval expected="line1" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea[1]/text"/>
-    <eval expected="line2" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea[2]/text"/>
-    <eval expected="line3" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea[1]/text"/>
+    <eval expected="2" xpath="count(//pageViewport)"/>
+    
+    <eval expected="" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea[1]/text"/>
+    <eval expected="line1" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea[2]/text"/>
+    <eval expected="line2" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea[1]/text"/>
+    <eval expected="line3" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea[2]/text"/>
   </checks>
 </testcase>