All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.batik.transcoder.image.unitTesting.xml Maven / Gradle / Ivy

There is a newer version: 1.17
Show newest version
<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at
   
        http://www.apache.org/licenses/LICENSE-2.0
   
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->

<!-- ====================================================================== -->
<!-- @author [email protected]                                               -->
<!-- @version $Id: unitTesting.xml 1733420 2016-03-03 07:41:59Z gadams $ -->
<!-- ====================================================================== -->
<testSuite id="transcoder.image.unitTesting" 
           name="org.apache.batik.transcoder.image.ImageTranscoder Unit Testing">

<!-- ================================================================== -->
<!--                         TranscoderInput Tests                      -->
<!-- ================================================================== -->

<test id="transcoder.image.uri" class="org.apache.batik.transcoder.image.URITest" >
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/samples/anne.png" />
</test>

<test id="transcoder.image.istream" class="org.apache.batik.transcoder.image.InputStreamTest" >
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/samples/anne.png" />
</test>

<test id="transcoder.image.genericdocument" class="org.apache.batik.transcoder.image.GenericDocumentTest" >
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/samples/anne.png" />
</test>

<test id="transcoder.image.reader" class="org.apache.batik.transcoder.image.ReaderTest" >
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/samples/anne.png" />
</test>

<test id="transcoder.image.dom" class="org.apache.batik.transcoder.image.DOMTest" />

<test id="transcoder.image.dom2" class="org.apache.batik.transcoder.image.ParametrizedDOMTest" >
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/samples/anne.png" />
</test>

<!-- ================================================================== -->
<!-- KEY_WIDTH and/or KEY_HEIGHT tests                                  -->
<!-- ================================================================== -->

<testGroup id="transcoder.image.hints.dimension" class="org.apache.batik.transcoder.image.DimensionTest">

<!-- ###### Document with a viewBox ###### -->
<test id="transcoder.image.hints.width200">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneW200.png" />
  <arg class="java.lang.Float" value="200" />
  <arg class="java.lang.Float" value="-1" />
</test>

<test id="transcoder.image.hints.height200">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneH200.png" />
  <arg class="java.lang.Float" value="-1" />
  <arg class="java.lang.Float" value="200" />
</test>

<test id="transcoder.image.hints.widthheight200">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneWH200.png" />
  <arg class="java.lang.Float" value="200" />
  <arg class="java.lang.Float" value="200" />
</test>

<test id="transcoder.image.hints.width600">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneW600.png" />
  <arg class="java.lang.Float" value="600" />
  <arg class="java.lang.Float" value="-1" />
</test>

<test id="transcoder.image.hints.height600">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneH600.png" />
  <arg class="java.lang.Float" value="-1" />
  <arg class="java.lang.Float" value="600" />
</test>

<test id="transcoder.image.hints.widthheight600">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneWH600.png" />
  <arg class="java.lang.Float" value="600" />
  <arg class="java.lang.Float" value="600" />
</test>

<!-- ###### Document without a viewBox ###### -->
<test id="transcoder.image.hints.width200.noViewBox">
  <arg class="java.lang.String" value="test-resources/org/apache/batik/transcoder/image/resources/butterfly.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/butterflyW200.png" />
  <arg class="java.lang.Float" value="200" />
  <arg class="java.lang.Float" value="-1" />
</test>

<test id="transcoder.image.hints.height200.noViewBox">
  <arg class="java.lang.String" value="test-resources/org/apache/batik/transcoder/image/resources/butterfly.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/butterflyH200.png" />
  <arg class="java.lang.Float" value="-1" />
  <arg class="java.lang.Float" value="200" />
</test>

<test id="transcoder.image.hints.widthheight200.noViewBox">
  <arg class="java.lang.String" value="test-resources/org/apache/batik/transcoder/image/resources/butterfly.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/butterflyWH200.png" />
  <arg class="java.lang.Float" value="200" />
  <arg class="java.lang.Float" value="200" />
</test>

<test id="transcoder.image.hints.width600.noViewBox">
  <arg class="java.lang.String" value="test-resources/org/apache/batik/transcoder/image/resources/butterfly.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/butterflyW600.png" />
  <arg class="java.lang.Float" value="600" />
  <arg class="java.lang.Float" value="-1" />
</test>

<test id="transcoder.image.hints.height600.noViewBox">
  <arg class="java.lang.String" value="test-resources/org/apache/batik/transcoder/image/resources/butterfly.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/butterflyH600.png" />
  <arg class="java.lang.Float" value="-1" />
  <arg class="java.lang.Float" value="600" />
</test>

<test id="transcoder.image.hints.widthheight600.noViewBox">
  <arg class="java.lang.String" value="test-resources/org/apache/batik/transcoder/image/resources/butterfly.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/butterflyWH600.png" />
  <arg class="java.lang.Float" value="600" />
  <arg class="java.lang.Float" value="600" />
</test>

</testGroup>

<!-- ================================================================== -->
<!-- KEY_MAX_WIDTH and/or KEY_MAX_HEIGHT tests                          -->
<!-- ================================================================== -->

<testGroup id="transcoder.image.hints.maxDimension" class="org.apache.batik.transcoder.image.MaxDimensionTest">

<!-- ###### Limit size in the document ###### -->
<test id="transcoder.image.hints.maxWidth200">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneMaxW200.png" />
  <arg class="java.lang.Float" value="200" />
  <arg class="java.lang.Float" value="-1" />
</test>

<test id="transcoder.image.hints.maxHeight200">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneMaxH200.png" />
  <arg class="java.lang.Float" value="-1" />
  <arg class="java.lang.Float" value="200" />
</test>

<test id="transcoder.image.hints.maxWidthHeight200">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneMaxWH200.png" />
  <arg class="java.lang.Float" value="200" />
  <arg class="java.lang.Float" value="200" />
</test>

<!-- ###### Limit size set in hints ###### -->
<test id="transcoder.image.hints.maxWidth200.overrideHints">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneMaxW200.png" />
  <arg class="java.lang.Float" value="200" />
  <arg class="java.lang.Float" value="-1" />
  <arg class="java.lang.Float" value="300" />
  <arg class="java.lang.Float" value="-1" />
</test>

<test id="transcoder.image.hints.maxHeight200.overrideHints">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneMaxH200.png" />
  <arg class="java.lang.Float" value="-1" />
  <arg class="java.lang.Float" value="200" />
  <arg class="java.lang.Float" value="-1" />
  <arg class="java.lang.Float" value="300" />
</test>

<test id="transcoder.image.hints.maxWidthHeight200.overrideHints">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneMaxWH200.png" />
  <arg class="java.lang.Float" value="200" />
  <arg class="java.lang.Float" value="200" />
  <arg class="java.lang.Float" value="300" />
  <arg class="java.lang.Float" value="300" />
</test>

</testGroup>

<!-- ================================================================== -->
<!-- KEY_BACKGROUND_COLOR                                               -->
<!-- ================================================================== -->

<test id="transcoder.image.hints.background" class="org.apache.batik.transcoder.image.BackgroundColorTest" />

<!-- ================================================================== -->
<!-- KEY_LANGUAGE                                                       -->
<!-- ================================================================== -->

<testGroup id="transcoder.image.hints.language" class="org.apache.batik.transcoder.image.LanguageTest">

<test id="transcoder.image.hints.language.en">
  <arg class="java.lang.String" value="test-resources/org/apache/batik/transcoder/image/resources/language.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/languageEn.png" />
  <arg class="java.lang.String" value="en" />
</test>

<test id="transcoder.image.hints.language.fr">
  <arg class="java.lang.String" value="test-resources/org/apache/batik/transcoder/image/resources/language.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/languageFr.png" />
  <arg class="java.lang.String" value="fr" />
</test>

<test id="transcoder.image.hints.language.default">
  <arg class="java.lang.String" value="test-resources/org/apache/batik/transcoder/image/resources/language.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/language.png" />
  <arg class="java.lang.String" value="" />
</test>

</testGroup>

<!-- ================================================================== -->
<!-- KEY_AOI                                                            -->
<!-- ================================================================== -->

<testGroup id="transcoder.image.hints.aoi" class="org.apache.batik.transcoder.image.AOITest">

<!-- ### document with a viewBox ### -->

<!-- ###### default document size ###### -->
<test id="transcoder.image.hints.aoi.NW">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneNW.png" />
  <arg class="java.lang.Float" value="0" /> <!-- AOI.x -->
  <arg class="java.lang.Float" value="0" /> <!-- AOI.y -->
  <arg class="java.lang.Float" value="225" /> <!-- AOI.width -->
  <arg class="java.lang.Float" value="250" /> <!-- AOI.height -->
</test>

<test id="transcoder.image.hints.aoi.NE">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneNE.png" />
  <arg class="java.lang.Float" value="225" /> <!-- AOI.x -->
  <arg class="java.lang.Float" value="0" /> <!-- AOI.y -->
  <arg class="java.lang.Float" value="225" /> <!-- AOI.width -->
  <arg class="java.lang.Float" value="250" /> <!-- AOI.height -->
</test>

<test id="transcoder.image.hints.aoi.SW">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneSW.png" />
  <arg class="java.lang.Float" value="0" /> <!-- AOI.x -->
  <arg class="java.lang.Float" value="250" /> <!-- AOI.y -->
  <arg class="java.lang.Float" value="225" /> <!-- AOI.width -->
  <arg class="java.lang.Float" value="250" /> <!-- AOI.height -->
</test>

<test id="transcoder.image.hints.aoi.SE">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneSE.png" />
  <arg class="java.lang.Float" value="225" /> <!-- AOI.x -->
  <arg class="java.lang.Float" value="250" /> <!-- AOI.y -->
  <arg class="java.lang.Float" value="225" /> <!-- AOI.width -->
  <arg class="java.lang.Float" value="250" /> <!-- AOI.height -->
</test>

<test id="transcoder.image.hints.aoi.C">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneC.png" />
  <arg class="java.lang.Float" value="125" /> <!-- AOI.x -->
  <arg class="java.lang.Float" value="150" /> <!-- AOI.y -->
  <arg class="java.lang.Float" value="225" /> <!-- AOI.width -->
  <arg class="java.lang.Float" value="250" /> <!-- AOI.height -->
</test>

<!-- ###### explicit image dimension ###### -->
<test id="transcoder.image.hints.aoi.NW">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneWNW.png" />
  <arg class="java.lang.Float" value="0" /> <!-- AOI.x -->
  <arg class="java.lang.Float" value="0" /> <!-- AOI.y -->
  <arg class="java.lang.Float" value="225" /> <!-- AOI.width -->
  <arg class="java.lang.Float" value="250" /> <!-- AOI.height -->
  <arg class="java.lang.Float" value="225" /> <!-- width -->
  <arg class="java.lang.Float" value="250" /> <!-- height -->
</test>

<test id="transcoder.image.hints.aoi.NE">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneWNE.png" />
  <arg class="java.lang.Float" value="225" /> <!-- AOI.x -->
  <arg class="java.lang.Float" value="0" /> <!-- AOI.y -->
  <arg class="java.lang.Float" value="225" /> <!-- AOI.width -->
  <arg class="java.lang.Float" value="250" /> <!-- AOI.height -->
  <arg class="java.lang.Float" value="225" /> <!-- width -->
  <arg class="java.lang.Float" value="250" /> <!-- height -->
</test>

<test id="transcoder.image.hints.aoi.SW">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneWSW.png" />
  <arg class="java.lang.Float" value="0" /> <!-- AOI.x -->
  <arg class="java.lang.Float" value="250" /> <!-- AOI.y -->
  <arg class="java.lang.Float" value="225" /> <!-- AOI.width -->
  <arg class="java.lang.Float" value="250" /> <!-- AOI.height -->
  <arg class="java.lang.Float" value="225" /> <!-- width -->
  <arg class="java.lang.Float" value="250" /> <!-- height -->
</test>

<test id="transcoder.image.hints.aoi.SE">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneWSE.png" />
  <arg class="java.lang.Float" value="225" /> <!-- AOI.x -->
  <arg class="java.lang.Float" value="250" /> <!-- AOI.y -->
  <arg class="java.lang.Float" value="225" /> <!-- AOI.width -->
  <arg class="java.lang.Float" value="250" /> <!-- AOI.height -->
  <arg class="java.lang.Float" value="225" /> <!-- width -->
  <arg class="java.lang.Float" value="250" /> <!-- height -->
</test>

<test id="transcoder.image.hints.aoi.C">
  <arg class="java.lang.String" value="samples/anne.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/anneWC.png" />
  <arg class="java.lang.Float" value="125" /> <!-- AOI.x -->
  <arg class="java.lang.Float" value="150" /> <!-- AOI.y -->
  <arg class="java.lang.Float" value="225" /> <!-- AOI.width -->
  <arg class="java.lang.Float" value="250" /> <!-- AOI.height -->
  <arg class="java.lang.Float" value="225" /> <!-- width -->
  <arg class="java.lang.Float" value="250" /> <!-- height -->
</test>

<!-- ### document with no viewBox ### -->

<!-- ###### default document size ###### -->
<test id="transcoder.image.hints.aoi.NW">
  <arg class="java.lang.String" value="test-resources/org/apache/batik/transcoder/image/resources/butterfly.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/butterflyNW.png" />
  <arg class="java.lang.Float" value="0" /> <!-- AOI.x -->
  <arg class="java.lang.Float" value="0" /> <!-- AOI.y -->
  <arg class="java.lang.Float" value="212.5" /> <!-- AOI.width -->
  <arg class="java.lang.Float" value="150" /> <!-- AOI.height -->
</test>

<test id="transcoder.image.hints.aoi.NE">
  <arg class="java.lang.String" value="test-resources/org/apache/batik/transcoder/image/resources/butterfly.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/butterflyNE.png" />
  <arg class="java.lang.Float" value="212.5" /> <!-- AOI.x -->
  <arg class="java.lang.Float" value="0" /> <!-- AOI.y -->
  <arg class="java.lang.Float" value="212.5" /> <!-- AOI.width -->
  <arg class="java.lang.Float" value="150" /> <!-- AOI.height -->
</test>

<test id="transcoder.image.hints.aoi.SW">
  <arg class="java.lang.String" value="test-resources/org/apache/batik/transcoder/image/resources/butterfly.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/butterflySW.png" />
  <arg class="java.lang.Float" value="0" /> <!-- AOI.x -->
  <arg class="java.lang.Float" value="150" /> <!-- AOI.y -->
  <arg class="java.lang.Float" value="212.5" /> <!-- AOI.width -->
  <arg class="java.lang.Float" value="150" /> <!-- AOI.height -->
</test>

<test id="transcoder.image.hints.aoi.SE">
  <arg class="java.lang.String" value="test-resources/org/apache/batik/transcoder/image/resources/butterfly.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/butterflySE.png" />
  <arg class="java.lang.Float" value="212.5" /> <!-- AOI.x -->
  <arg class="java.lang.Float" value="150" /> <!-- AOI.y -->
  <arg class="java.lang.Float" value="212.5" /> <!-- AOI.width -->
  <arg class="java.lang.Float" value="150" /> <!-- AOI.height -->
</test>

<test id="transcoder.image.hints.aoi.C">
  <arg class="java.lang.String" value="test-resources/org/apache/batik/transcoder/image/resources/butterfly.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/butterflyC.png" />
  <arg class="java.lang.Float" value="125" /> <!-- AOI.x -->
  <arg class="java.lang.Float" value="150" /> <!-- AOI.y -->
  <arg class="java.lang.Float" value="212.5" /> <!-- AOI.width -->
  <arg class="java.lang.Float" value="150" /> <!-- AOI.height -->
</test>

<!-- ###### explicit image dimension ###### -->
<test id="transcoder.image.hints.aoi.NW">
  <arg class="java.lang.String" value="test-resources/org/apache/batik/transcoder/image/resources/butterfly.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/butterflyWNW.png" />
  <arg class="java.lang.Float" value="0" /> <!-- AOI.x -->
  <arg class="java.lang.Float" value="0" /> <!-- AOI.y -->
  <arg class="java.lang.Float" value="212.5" /> <!-- AOI.width -->
  <arg class="java.lang.Float" value="150" /> <!-- AOI.height -->
  <arg class="java.lang.Float" value="212.5" /> <!-- width -->
  <arg class="java.lang.Float" value="150" /> <!-- height -->
</test>

<test id="transcoder.image.hints.aoi.NE">
  <arg class="java.lang.String" value="test-resources/org/apache/batik/transcoder/image/resources/butterfly.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/butterflyWNE.png" />
  <arg class="java.lang.Float" value="212.5" /> <!-- AOI.x -->
  <arg class="java.lang.Float" value="0" /> <!-- AOI.y -->
  <arg class="java.lang.Float" value="212.5" /> <!-- AOI.width -->
  <arg class="java.lang.Float" value="150" /> <!-- AOI.height -->
  <arg class="java.lang.Float" value="212.5" /> <!-- width -->
  <arg class="java.lang.Float" value="150" /> <!-- height -->
</test>

<test id="transcoder.image.hints.aoi.SW">
  <arg class="java.lang.String" value="test-resources/org/apache/batik/transcoder/image/resources/butterfly.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/butterflyWSW.png" />
  <arg class="java.lang.Float" value="0" /> <!-- AOI.x -->
  <arg class="java.lang.Float" value="150" /> <!-- AOI.y -->
  <arg class="java.lang.Float" value="212.5" /> <!-- AOI.width -->
  <arg class="java.lang.Float" value="150" /> <!-- AOI.height -->
  <arg class="java.lang.Float" value="212.5" /> <!-- width -->
  <arg class="java.lang.Float" value="150" /> <!-- height -->
</test>

<test id="transcoder.image.hints.aoi.SE">
  <arg class="java.lang.String" value="test-resources/org/apache/batik/transcoder/image/resources/butterfly.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/butterflyWSE.png" />
  <arg class="java.lang.Float" value="212.5" /> <!-- AOI.x -->
  <arg class="java.lang.Float" value="150" /> <!-- AOI.y -->
  <arg class="java.lang.Float" value="212.5" /> <!-- AOI.width -->
  <arg class="java.lang.Float" value="150" /> <!-- AOI.height -->
  <arg class="java.lang.Float" value="212.5" /> <!-- width -->
  <arg class="java.lang.Float" value="150" /> <!-- height -->
</test>

<test id="transcoder.image.hints.aoi.C">
  <arg class="java.lang.String" value="test-resources/org/apache/batik/transcoder/image/resources/butterfly.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/butterflyWC.png" />
  <arg class="java.lang.Float" value="125" /> <!-- AOI.x -->
  <arg class="java.lang.Float" value="150" /> <!-- AOI.y -->
  <arg class="java.lang.Float" value="212.5" /> <!-- AOI.width -->
  <arg class="java.lang.Float" value="150" /> <!-- AOI.height -->
  <arg class="java.lang.Float" value="212.5" /> <!-- width -->
  <arg class="java.lang.Float" value="150" /> <!-- height -->
</test>

</testGroup>

<!-- ================================================================== -->
<!-- KEY_MEDIA                                                          -->
<!-- ================================================================== -->

<testGroup id="transcoder.image.hints.media" class="org.apache.batik.transcoder.image.MediaTest">

<test id="transcoder.image.hints.media.screen">
  <arg class="java.lang.String" value="samples/tests/spec/styling/cssMedia.svg" />
  <arg class="java.lang.String" value="test-references/samples/tests/spec/styling/cssMediaScreen.png" />
  <arg class="java.lang.String" value="screen" />
</test>

<test id="transcoder.image.hints.media.screen">
  <arg class="java.lang.String" value="samples/tests/spec/styling/cssMedia.svg" />
  <arg class="java.lang.String" value="test-references/samples/tests/spec/styling/cssMediaProjection.png" />
  <arg class="java.lang.String" value="projection" />
</test>

<test id="transcoder.image.hints.media.screen">
  <arg class="java.lang.String" value="samples/tests/spec/styling/cssMedia.svg" />
  <arg class="java.lang.String" value="test-references/samples/tests/spec/styling/cssMediaPrint.png" />
  <arg class="java.lang.String" value="print" />
</test>

</testGroup>

<!-- ================================================================== -->
<!-- KEY_DEFAULT_FONT_FAMILY                                            -->
<!-- ================================================================== -->

<testGroup id="transcoder.image.hints.fontFamily" class="org.apache.batik.transcoder.image.DefaultFontFamilyTest">

<test id="transcoder.image.hints.defaultFontFamily.Arial">
  <arg class="java.lang.String" value="samples/tests/spec/styling/defaultFontFamily.svg" />
  <arg class="java.lang.String" value="test-references/samples/tests/spec/styling/defaultFontFamilyArial.png" />
  <arg class="java.lang.String" value="Arial" />
</test>

<test id="transcoder.image.hints.defaultFontFamily.Times">
  <arg class="java.lang.String" value="samples/tests/spec/styling/defaultFontFamily.svg" />
  <arg class="java.lang.String" value="test-references/samples/tests/spec/styling/defaultFontFamilyTimes.png" />
  <arg class="java.lang.String" value="Times" />
</test>

<test id="trancoder.image.hints.defaultFontFamily.TotoTimes">
  <arg class="java.lang.String" value="samples/tests/spec/styling/defaultFontFamily.svg" />
  <arg class="java.lang.String" value="test-references/samples/tests/spec/styling/defaultFontFamilyTimes.png" />
  <arg class="java.lang.String" value="toto, Times" />
</test>

</testGroup>

<!-- ================================================================== -->
<!-- KEY_ALTERNATE_STYLESHEET                                           -->
<!-- ================================================================== -->

<testGroup id="transcoder.image.hints.alternateStylesheet" class="org.apache.batik.transcoder.image.AlternateStylesheetTest">

<test id="transcoder.image.hints.alternateStylesheet.s1">
  <arg class="java.lang.String" value="samples/tests/spec/styling/smiley.svg" />
  <arg class="java.lang.String" value="test-references/samples/tests/spec/styling/smileySmiling.png" />
  <arg class="java.lang.String" value="Smiling" />
</test>

<test id="transcoder.image.hints.alternateStylesheet.s2">
  <arg class="java.lang.String" value="samples/tests/spec/styling/smiley.svg" />
  <arg class="java.lang.String" value="test-references/samples/tests/spec/styling/smileyBasic Sad.png" />
  <arg class="java.lang.String" value="Basic Sad" />
</test>

<test id="transcoder.image.hints.alternateStylesheet.s3">
  <arg class="java.lang.String" value="samples/tests/spec/styling/smiley.svg" />
  <arg class="java.lang.String" value="test-references/samples/tests/spec/styling/smileyWow!.png" />
  <arg class="java.lang.String" value="Wow!" />
</test>

<test id="transcoder.image.hints.alternateStylesheet.s4">
  <arg class="java.lang.String" value="samples/tests/spec/styling/smiley.svg" />
  <arg class="java.lang.String" value="test-references/samples/tests/spec/styling/smileyGrim.png" />
  <arg class="java.lang.String" value="Grim" />
</test>

<test id="transcoder.image.hints.alternateStylesheet.s5">
  <arg class="java.lang.String" value="samples/tests/spec/styling/smiley.svg" />
  <arg class="java.lang.String" value="test-references/samples/tests/spec/styling/smileyOups.png" />
  <arg class="java.lang.String" value="Oups" />
</test>

</testGroup>

<!-- ================================================================== -->
<!-- KEY_PIXEL_TO_MM                                                    -->
<!-- ================================================================== -->

<testGroup id="transcoder.image.hints.px2mm" class="org.apache.batik.transcoder.image.PixelToMMTest">

<test id="transcoder.image.hints.px2mm.96dpi">
  <arg class="java.lang.String" value="test-resources/org/apache/batik/transcoder/image/resources/px2mm.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/px2mm96dpi.png" />
  <arg class="java.lang.Float" value="0.2645833f" /> <!-- 96 dpi -->
</test>

<test id="transcoder.image.hints.px2mm.72dpi">
  <arg class="java.lang.String" value="test-resources/org/apache/batik/transcoder/image/resources/px2mm.svg" />
  <arg class="java.lang.String" value="test-references/org/apache/batik/transcoder/image/px2mm72dpi.png" />
  <arg class="java.lang.Float" value="0.3528f" /> <!-- 72 dpi -->
</test>

</testGroup>


</testSuite>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy