aboutsummaryrefslogtreecommitdiffstats
path: root/test/layoutengine
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2008-10-29 09:32:07 +0000
committerJeremias Maerki <jeremias@apache.org>2008-10-29 09:32:07 +0000
commite2e044f9fabe42a8f883eaa5e20eb599f9541150 (patch)
treefbb74c71b0492fc361dad710196da0cdc6c3a9c9 /test/layoutengine
parent9e66ddf99c5dbce1c979e8895c50f3b8afab11ad (diff)
downloadxmlgraphics-fop-e2e044f9fabe42a8f883eaa5e20eb599f9541150.tar.gz
xmlgraphics-fop-e2e044f9fabe42a8f883eaa5e20eb599f9541150.zip
Adding variant with fox:conversion-mode="bitmap" for visual testing.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@708848 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/layoutengine')
-rw-r--r--test/layoutengine/standard-testcases/external-graphic_wmf.xml21
1 files changed, 15 insertions, 6 deletions
diff --git a/test/layoutengine/standard-testcases/external-graphic_wmf.xml b/test/layoutengine/standard-testcases/external-graphic_wmf.xml
index d44fab5cf..f95a16bd9 100644
--- a/test/layoutengine/standard-testcases/external-graphic_wmf.xml
+++ b/test/layoutengine/standard-testcases/external-graphic_wmf.xml
@@ -23,7 +23,8 @@
</p>
</info>
<fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
+ <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xmlns:fox="http://xmlgraphics.apache.org/fop/extensions">
<fo:layout-master-set>
<fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
<fo:region-body/>
@@ -33,7 +34,12 @@
<fo:flow flow-name="xsl-region-body">
<fo:block>WMF external-graphic</fo:block>
<fo:block>
- <fo:external-graphic src="../../resources/images/testChart.wmf" content-width="40%"/>EOG
+ <fo:external-graphic src="../../resources/images/testChart.wmf" content-width="25%"/>EOG
+ </fo:block>
+ <fo:block>
+ <!-- the same image but with conversion-mode="bitmap" -->
+ <fo:external-graphic src="../../resources/images/testChart.wmf" content-width="25%"
+ fox:conversion-mode="bitmap"/>EOG
</fo:block>
<fo:block>EOF</fo:block>
</fo:flow>
@@ -41,9 +47,12 @@
</fo:root>
</fo>
<checks>
- <eval expected="316800" tolerance="10" xpath="//flow/block[2]/lineArea/viewport/@ipd"/>
- <eval expected="316800" tolerance="10" xpath="//flow/block[2]/lineArea/viewport/@ipda"/>
- <eval expected="244800" tolerance="10" xpath="//flow/block[2]/lineArea/viewport/@bpd"/>
- <eval expected="244800" tolerance="10" xpath="//flow/block[2]/lineArea/viewport/@bpda"/>
+ <eval expected="198000" tolerance="10" xpath="//flow/block[2]/lineArea/viewport/@ipd"/>
+ <eval expected="198000" tolerance="10" xpath="//flow/block[2]/lineArea/viewport/@ipda"/>
+ <eval expected="153000" tolerance="10" xpath="//flow/block[2]/lineArea/viewport/@bpd"/>
+ <eval expected="153000" tolerance="10" xpath="//flow/block[2]/lineArea/viewport/@bpda"/>
+
+ <eval expected="198000" tolerance="10" xpath="//flow/block[3]/lineArea/viewport/@ipda"/>
+ <eval expected="153000" tolerance="10" xpath="//flow/block[3]/lineArea/viewport/@bpda"/>
</checks>
</testcase>