Bläddra i källkod

Also test the case when the parent fo is an fo:inline


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@315027 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-0_90-alpha1
Simon Pepping 18 år sedan
förälder
incheckning
79f91f6bed
1 ändrade filer med 27 tillägg och 2 borttagningar
  1. 27
    2
      test/layoutengine/testcases/inline_block_nested_4.xml

+ 27
- 2
test/layoutengine/testcases/inline_block_nested_4.xml Visa fil

@@ -38,12 +38,24 @@
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"/>
@@ -54,15 +66,28 @@
<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>

Laddar…
Avbryt
Spara