You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2005/08/09 17:20:57 UTC

svn commit: r231050 - in /xmlgraphics/fop/branches/inlineblock/test/layoutengine/testcases: inline-block1.xml inline1.xml

Author: jeremias
Date: Tue Aug  9 08:20:49 2005
New Revision: 231050

URL: http://svn.apache.org/viewcvs?rev=231050&view=rev
Log:
Checks!

Modified:
    xmlgraphics/fop/branches/inlineblock/test/layoutengine/testcases/inline-block1.xml
    xmlgraphics/fop/branches/inlineblock/test/layoutengine/testcases/inline1.xml

Modified: xmlgraphics/fop/branches/inlineblock/test/layoutengine/testcases/inline-block1.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/branches/inlineblock/test/layoutengine/testcases/inline-block1.xml?rev=231050&r1=231049&r2=231050&view=diff
==============================================================================
--- xmlgraphics/fop/branches/inlineblock/test/layoutengine/testcases/inline-block1.xml (original)
+++ xmlgraphics/fop/branches/inlineblock/test/layoutengine/testcases/inline-block1.xml Tue Aug  9 08:20:49 2005
@@ -53,5 +53,38 @@
     </fo:root>
   </fo>
   <checks>
+    <element-list category="breaker">
+      <box w="14400"/>
+      <box w="14400"/>
+      <penalty w="0" p="0"/>
+      <box w="14400"/>
+      <penalty w="0" p="0"/>
+      <box w="14400"/>
+      <penalty w="0" p="0"/>
+      <box w="14400"/>
+      <box w="14400"/>
+      <skip>3</skip>
+    </element-list>
+    
+    <!-- the following check sequence verifies background traits caused by the inline element. -->
+    <true xpath="not(boolean(//flow/block/@background))"/>
+    <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"/>
+
+    <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"/>
+    <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"/>
+    <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"/>
+
+    <true xpath="not(boolean(//flow/block/lineArea[6]/child::*[1]/@background))"/>
   </checks>
 </testcase>

Modified: xmlgraphics/fop/branches/inlineblock/test/layoutengine/testcases/inline1.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/branches/inlineblock/test/layoutengine/testcases/inline1.xml?rev=231050&r1=231049&r2=231050&view=diff
==============================================================================
--- xmlgraphics/fop/branches/inlineblock/test/layoutengine/testcases/inline1.xml (original)
+++ xmlgraphics/fop/branches/inlineblock/test/layoutengine/testcases/inline1.xml Tue Aug  9 08:20:49 2005
@@ -36,6 +36,11 @@
     </fo:root>
   </fo>
   <checks>
-    <!-- currently causes a ClassCastException -->
+    <element-list category="breaker">
+      <box w="14400"/>
+      <penalty w="0" p="0"/>
+      <box w="14400"/>
+      <skip>3</skip>
+    </element-list>
   </checks>
 </testcase>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org