]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
More checks and XPath fixes.
authorJeremias Maerki <jeremias@apache.org>
Tue, 9 Aug 2005 15:48:11 +0000 (15:48 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 9 Aug 2005 15:48:11 +0000 (15:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/inlineblock@231056 13f79535-47bb-0310-9956-ffa450edef68

test/layoutengine/testcases/inline-block1.xml

index c23c968d69313598db098faa0a8506b0847bad82..c686d69f0e08b309b5b0fc23a6a282136c2a76fc 100644 (file)
     <true xpath="not(boolean(//flow/block/lineArea[1]/child::*[1]/@background))"/>
     
     <true xpath="boolean(//flow/block/lineArea[2]/inlineparent[1])"/>
-    <eval expected="color=#d3d3d3,repeat=0,horiz=0,vertical=0" xpath="//flow/block/lineArea[2]//child::*[1]/@background"/>
+    <eval expected="color=#d3d3d3,repeat=0,horiz=0,vertical=0" xpath="//flow/block/lineArea[2]/child::*[1]/@background"/>
 
     <true xpath="boolean(//flow/block/lineArea[3]/inlineblockparent[1])"/>
-    <eval expected="color=#d3d3d3,repeat=0,horiz=0,vertical=0" xpath="//flow/block/lineArea[3]//child::*[1]/@background"/>
+    <eval expected="color=#d3d3d3,repeat=0,horiz=0,vertical=0" xpath="//flow/block/lineArea[3]/child::*[1]/@background"/>
     <true xpath="not(boolean(//flow/block/lineArea[3]/inlineblockparent[1]/block/@background))"/>
 
     <true xpath="boolean(//flow/block/lineArea[4]/inlineblockparent[1])"/>
-    <eval expected="color=#d3d3d3,repeat=0,horiz=0,vertical=0" xpath="//flow/block/lineArea[4]//child::*[1]/@background"/>
+    <eval expected="color=#d3d3d3,repeat=0,horiz=0,vertical=0" xpath="//flow/block/lineArea[4]/child::*[1]/@background"/>
     <true xpath="not(boolean(//flow/block/lineArea[4]/inlineblockparent[1]/block/@background))"/>
 
     <eval expected="inlineparent" xpath="local-name(//flow/block/lineArea[5]/child::*[1])"/>
     <eval expected="text" xpath="local-name(//flow/block/lineArea[5]/child::*[2])"/>
-    <eval expected="color=#d3d3d3,repeat=0,horiz=0,vertical=0" xpath="//flow/block/lineArea[5]//child::*[1]/@background"/>
+    <eval expected="color=#d3d3d3,repeat=0,horiz=0,vertical=0" xpath="//flow/block/lineArea[5]/child::*[1]/@background"/>
 
     <true xpath="not(boolean(//flow/block/lineArea[6]/child::*[1]/@background))"/>
+
+    <!-- the following check sequence verifies size traits so the background is actually painted correctly. -->
+    <eval expected="86400" xpath="//flow/block/@bpd"/>
+    <eval expected="337891" xpath="//flow/block/@ipd"/>
+    <eval expected="14400" xpath="//flow/block/lineArea[4]/child::*[1]/@bpd"/>
+    <eval expected="337891" xpath="//flow/block/lineArea[4]/child::*[1]/@ipd"/>
+    <eval expected="14400" xpath="//flow/block/lineArea[5]/child::*[1]/@bpd"/>
+    <eval expected="337891" xpath="//flow/block/lineArea[5]/child::*[1]/@ipd"/>
+
   </checks>
 </testcase>