diff options
Diffstat (limited to 'test/layoutengine')
-rw-r--r-- | test/layoutengine/testcases/inline_block_nested_4.xml | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/test/layoutengine/testcases/inline_block_nested_4.xml b/test/layoutengine/testcases/inline_block_nested_4.xml index 02df52d80..8def85e10 100644 --- a/test/layoutengine/testcases/inline_block_nested_4.xml +++ b/test/layoutengine/testcases/inline_block_nested_4.xml @@ -38,6 +38,12 @@ 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> @@ -49,20 +55,39 @@ <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"/> <glue w="0"/> <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> |