Browse Source

Simpler and more robust XPath statements.

Suggested by: Simon Pepping


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198427 13f79535-47bb-0310-9956-ffa450edef68
tags/Root_Temp_KnuthStylePageBreaking
Jeremias Maerki 19 years ago
parent
commit
42cc3d4164
2 changed files with 26 additions and 26 deletions
  1. 13
    13
      test/layoutengine/testcases/breaks1.xml
  2. 13
    13
      test/layoutengine/testcases/breaks2.xml

+ 13
- 13
test/layoutengine/testcases/breaks1.xml View File

@@ -48,18 +48,18 @@
</fo:root>
</fo>
<checks>
<eval expected="1" xpath="//text[. = 'line1']/../../../../../../../../../@nr"/>
<eval expected="2" xpath="//text[. = 'line2']/../../../../../../../../../@nr"/>
<eval expected="2" xpath="//text[. = 'line3']/../../../../../../../../../@nr"/>
<eval expected="3" xpath="//text[. = 'line4']/../../../../../../../../../@nr"/>
<eval expected="3" xpath="//text[. = 'line5']/../../../../../../../../../@nr"/>
<eval expected="4" xpath="//text[. = 'line6']/../../../../../../../../../@nr"/>
<eval expected="4" xpath="//text[. = 'line7']/../../../../../../../../../@nr"/>
<eval expected="6" xpath="//text[. = 'line8']/../../../../../../../../../@nr"/>
<eval expected="6" xpath="//text[. = 'line9']/../../../../../../../../../@nr"/>
<eval expected="7" xpath="//text[. = 'line10']/../../../../../../../../../@nr"/>
<eval expected="7" xpath="//text[. = 'line11']/../../../../../../../../../@nr"/>
<eval expected="9" xpath="//text[. = 'line12']/../../../../../../../../../@nr"/>
<eval expected="9" xpath="//text[. = 'line13']/../../../../../../../../../@nr"/>
<eval expected="1" xpath="//lineArea[. = 'line1']/ancestor::pageViewport/@nr"/>
<eval expected="2" xpath="//lineArea[. = 'line2']/ancestor::pageViewport/@nr"/>
<eval expected="2" xpath="//lineArea[. = 'line3']/ancestor::pageViewport/@nr"/>
<eval expected="3" xpath="//lineArea[. = 'line4']/ancestor::pageViewport/@nr"/>
<eval expected="3" xpath="//lineArea[. = 'line5']/ancestor::pageViewport/@nr"/>
<eval expected="4" xpath="//lineArea[. = 'line6']/ancestor::pageViewport/@nr"/>
<eval expected="4" xpath="//lineArea[. = 'line7']/ancestor::pageViewport/@nr"/>
<eval expected="6" xpath="//lineArea[. = 'line8']/ancestor::pageViewport/@nr"/>
<eval expected="6" xpath="//lineArea[. = 'line9']/ancestor::pageViewport/@nr"/>
<eval expected="7" xpath="//lineArea[. = 'line10']/ancestor::pageViewport/@nr"/>
<eval expected="7" xpath="//lineArea[. = 'line11']/ancestor::pageViewport/@nr"/>
<eval expected="9" xpath="//lineArea[. = 'line12']/ancestor::pageViewport/@nr"/>
<eval expected="9" xpath="//lineArea[. = 'line13']/ancestor::pageViewport/@nr"/>
</checks>
</testcase>

+ 13
- 13
test/layoutengine/testcases/breaks2.xml View File

@@ -48,18 +48,18 @@
</fo:root>
</fo>
<checks>
<eval expected="1" xpath="//text[. = 'line1']/../../../../../../../../../@nr"/>
<eval expected="2" xpath="//text[. = 'line2']/../../../../../../../../../@nr"/>
<eval expected="2" xpath="//text[. = 'line3']/../../../../../../../../../@nr"/>
<eval expected="3" xpath="//text[. = 'line4']/../../../../../../../../../@nr"/>
<eval expected="3" xpath="//text[. = 'line5']/../../../../../../../../../@nr"/>
<eval expected="4" xpath="//text[. = 'line6']/../../../../../../../../../@nr"/>
<eval expected="4" xpath="//text[. = 'line7']/../../../../../../../../../@nr"/>
<eval expected="6" xpath="//text[. = 'line8']/../../../../../../../../../@nr"/>
<eval expected="6" xpath="//text[. = 'line9']/../../../../../../../../../@nr"/>
<eval expected="7" xpath="//text[. = 'line10']/../../../../../../../../../@nr"/>
<eval expected="7" xpath="//text[. = 'line11']/../../../../../../../../../@nr"/>
<eval expected="9" xpath="//text[. = 'line12']/../../../../../../../../../@nr"/>
<eval expected="9" xpath="//text[. = 'line13']/../../../../../../../../../@nr"/>
<eval expected="1" xpath="//lineArea[. = 'line1']/ancestor::pageViewport/@nr"/>
<eval expected="2" xpath="//lineArea[. = 'line2']/ancestor::pageViewport/@nr"/>
<eval expected="2" xpath="//lineArea[. = 'line3']/ancestor::pageViewport/@nr"/>
<eval expected="3" xpath="//lineArea[. = 'line4']/ancestor::pageViewport/@nr"/>
<eval expected="3" xpath="//lineArea[. = 'line5']/ancestor::pageViewport/@nr"/>
<eval expected="4" xpath="//lineArea[. = 'line6']/ancestor::pageViewport/@nr"/>
<eval expected="4" xpath="//lineArea[. = 'line7']/ancestor::pageViewport/@nr"/>
<eval expected="6" xpath="//lineArea[. = 'line8']/ancestor::pageViewport/@nr"/>
<eval expected="6" xpath="//lineArea[. = 'line9']/ancestor::pageViewport/@nr"/>
<eval expected="7" xpath="//lineArea[. = 'line10']/ancestor::pageViewport/@nr"/>
<eval expected="7" xpath="//lineArea[. = 'line11']/ancestor::pageViewport/@nr"/>
<eval expected="9" xpath="//lineArea[. = 'line12']/ancestor::pageViewport/@nr"/>
<eval expected="9" xpath="//lineArea[. = 'line13']/ancestor::pageViewport/@nr"/>
</checks>
</testcase>

Loading…
Cancel
Save