]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Adding variant with fox:conversion-mode="bitmap" for visual testing.
authorJeremias Maerki <jeremias@apache.org>
Wed, 29 Oct 2008 09:32:07 +0000 (09:32 +0000)
committerJeremias Maerki <jeremias@apache.org>
Wed, 29 Oct 2008 09:32:07 +0000 (09:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@708848 13f79535-47bb-0310-9956-ffa450edef68

test/layoutengine/standard-testcases/external-graphic_wmf.xml

index d44fab5cffa3d922b4367cb4e78d7262fc974381..f95a16bd9a56053f13438024811e6a2d27298d32 100644 (file)
@@ -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/>
         <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>
     </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>