]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Also test the case when the parent fo is an fo:inline
authorSimon Pepping <spepping@apache.org>
Wed, 12 Oct 2005 20:23:25 +0000 (20:23 +0000)
committerSimon Pepping <spepping@apache.org>
Wed, 12 Oct 2005 20:23:25 +0000 (20:23 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@315027 13f79535-47bb-0310-9956-ffa450edef68

test/layoutengine/testcases/inline_block_nested_4.xml

index 02df52d80c696100f5607a1c368fb5e92934a2b6..8def85e10014a384bb542b656b46728bd42bf684 100644 (file)
               after block</fo:inline>
             After inline
           </fo:block>
+          <fo:block>
+            <fo:inline background-color="blue">Before inline
+            <fo:inline background-color="red"><fo:block background-color="yellow">starting with a block</fo:block>
+              after block</fo:inline>
+            After inline</fo:inline>
+          </fo:block>
         </fo:flow>
       </fo:page-sequence>
     </fo:root>
   </fo>
   <checks>
     <element-list category="breaker">
+      <box w="12000"/>
+      <penalty w="0" p="0"/>
+      <box w="12000"/>
+      <penalty w="0" p="0"/>
+      <box w="12000"/>
+      <penalty w="0" p="0"/>
       <box w="12000"/>
       <penalty w="0" p="0"/>
       <box w="12000"/>
       <penalty w="0" p="-1000"/>
     </element-list>
     
+    <!-- first block -->
     <eval expected="Before inline"
           xpath="//flow/block[1]/lineArea[1]/text[1]"/>
-    <true xpath="boolean(//flow/block/lineArea[2]/inlineblockparent[1])"/>
+    <true xpath="boolean(//flow/block[1]/lineArea[2]/inlineblockparent[1])"/>
     <eval expected="starting with a block"
           xpath="//flow/block[1]/lineArea[2]/inlineblockparent[1]/block[1]/lineArea[1]/text[1]"/>
-    <true xpath="boolean(//flow/block/lineArea[3]/inlineparent[1])"/>
+    <true xpath="boolean(//flow/block[1]/lineArea[3]/inlineparent[1])"/>
     <eval expected=" After inline"
           xpath="//flow/block[1]/lineArea[3]/text[1]"/>
     <eval expected="after block"
           xpath="//flow/block[1]/lineArea[3]/inlineparent[1]/text[1]"/>
+
+    <!-- second block -->
+    <eval expected="Before inline"
+          xpath="//flow/block[2]/lineArea[1]/inlineparent[1]/text[1]"/>
+    <true xpath="boolean(//flow/block[2]/lineArea[2]/inlineparent[1]/inlineblockparent[1])"/>
+    <eval expected="starting with a block"
+          xpath="//flow/block[2]/lineArea[2]/inlineparent[1]/inlineblockparent[1]/block[1]/lineArea[1]/text[1]"/>
+    <true xpath="boolean(//flow/block[2]/lineArea[3]/inlineparent[1]/inlineparent[1])"/>
+    <eval expected=" After inline"
+          xpath="//flow/block[2]/lineArea[3]/inlineparent[1]/text[1]"/>
+    <eval expected="after block"
+          xpath="//flow/block[2]/lineArea[3]/inlineparent[1]/inlineparent[1]/text[1]"/>
   </checks>
 </testcase>