+2005-11-25 eseidel <eseidel@apple.com>
+
+ Rubber-stamped by mjs.
+
+ Test cases hrefs fixed from "../Images/" to "resources/"
+ Disabled two tests which were crashing in libxml2.
+
+ * svg/W3C-SVG-1.1/color-prof-01-f.svg:
+ * svg/W3C-SVG-1.1/coords-viewattr-01-b.svg: Removed.
+ * svg/W3C-SVG-1.1/coords-viewattr-01-b.svg-disabled: Added.
+ * svg/W3C-SVG-1.1/filters-conv-01-f.svg:
+ * svg/W3C-SVG-1.1/filters-diffuse-01-f.svg:
+ * svg/W3C-SVG-1.1/filters-displace-01-f.svg:
+ * svg/W3C-SVG-1.1/filters-image-01-b.svg:
+ * svg/W3C-SVG-1.1/filters-light-01-f.svg:
+ * svg/W3C-SVG-1.1/filters-specular-01-f.svg:
+ * svg/W3C-SVG-1.1/fonts-elem-03-b.svg:
+ * svg/W3C-SVG-1.1/fonts-elem-04-b.svg:
+ * svg/W3C-SVG-1.1/interact-cursor-01-f.svg:
+ * svg/W3C-SVG-1.1/interact-order-02-b.svg:
+ * svg/W3C-SVG-1.1/interact-order-03-b.svg:
+ * svg/W3C-SVG-1.1/linking-a-01-b.svg:
+ * svg/W3C-SVG-1.1/linking-a-02-b.svg:
+ * svg/W3C-SVG-1.1/linking-a-03-b.svg:
+ * svg/W3C-SVG-1.1/linking-a-04-t.svg:
+ * svg/W3C-SVG-1.1/linking-uri-02-b.svg:
+ * svg/W3C-SVG-1.1/linking-uri-03-t.svg:
+ * svg/W3C-SVG-1.1/masking-path-04-b.svg:
+ * svg/W3C-SVG-1.1/render-elems-03-t.svg: Removed.
+ * svg/W3C-SVG-1.1/render-elems-03-t.svg-disabled: Added.
+ * svg/W3C-SVG-1.1/render-groups-01-b.svg:
+ * svg/W3C-SVG-1.1/render-groups-03-t.svg:
+ * svg/W3C-SVG-1.1/struct-image-01-t.svg:
+ * svg/W3C-SVG-1.1/struct-image-02-b.svg:
+ * svg/W3C-SVG-1.1/struct-image-03-t.svg:
+ * svg/W3C-SVG-1.1/struct-image-05-b.svg:
+ * svg/W3C-SVG-1.1/struct-symbol-01-b.svg:
+ * svg/W3C-SVG-1.1/text-tref-01-b.svg:
+
2005-11-23 Anders Carlsson <andersca@mac.com>
Reviewed by Eric.
<!--======================================================================-->
<g id="test-body-content">
<defs>
- <color-profile id="changeColor" name="changeColor" xlink:href="../images/changeColor.ICM"/>
+ <color-profile id="changeColor" name="changeColor" xlink:href="Resources/changeColor.ICM"/>
</defs>
<g>
- <image id="image1PNG" x="30" y="0" width="190" height="190" xlink:href="../images/colorprof.png"/>
+ <image id="image1PNG" x="30" y="0" width="190" height="190" xlink:href="Resources/colorprof.png"/>
</g>
<g>
- <image color-profile="changeColor" id="image2" x="260" y="90" width="190" height="190" xlink:href="../images/colorprof.png"/>
+ <image color-profile="changeColor" id="image2" x="260" y="90" width="190" height="190" xlink:href="Resources/colorprof.png"/>
</g>
<text font-family="Arial" font-size="12" x="250" y="20">
Basic test of ICC profile with an image.
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd" [
+ <!ENTITY Smile "
+<rect x='.5' y='.5' width='29' height='39' fill='black' stroke='red'/>
+<g transform='translate(0, 5)'>
+<circle cx='15' cy='15' r='10' fill='yellow'/>
+<circle cx='12' cy='12' r='1.5' fill='black'/>
+<circle cx='17' cy='12' r='1.5' fill='black'/>
+<path d='M 10 19 L 15 23 20 19' stroke='black' stroke-width='2'/>
+</g>
+">
+ <!ENTITY Viewport1 "<rect x='.5' y='.5' width='49' height='29'
+fill='none' stroke='blue'/>">
+ <!ENTITY Viewport2 "<rect x='.5' y='.5' width='29' height='59'
+fill='none' stroke='blue'/>">
+]>
+<!--======================================================================-->
+<!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
+<!--= Institute of Technology, Institut National de Recherche en =-->
+<!--= Informatique et en Automatique, Keio University). All Rights =-->
+<!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
+<!--======================================================================-->
+<!-- ===================================================================== -->
+<!-- The content of this test is taken from the SVG specification. The -->
+<!-- original author is Jon Ferraiolo. -->
+<!-- coords-viewBox-BE-03.svg -->
+<!-- renamed for 1.1 suite to coords-viewattr-01-b.svg -->
+<!-- Author : Vincent Hardy -->
+<!-- Modified for svg 1.1 by Ola Andersson, 07-Mar-2002 -->
+<!--======================================================================-->
+<svg version="1.1" baseProfile="basic" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360">
+ <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
+ <OperatorScript version="$Revision$" testname="coords-viewattr-01-b.svg">
+ <Paragraph>
+ This test verifies the implementation of the viewBox and the preserveAspectRatio attribute.
+ This is a modified version of the sample file included in the SVG specification.
+ It exercises the various preserveAspectRatio values and uses a general entity definition
+ in order to make reading of the SVG source easier.
+ </Paragraph>
+ <Paragraph>
+ The rendered picture should match the reference image exactly except for variations in the labeling text.
+ </Paragraph>
+ </OperatorScript>
+ </SVGTestCase>
+ <title id="test-title">coords-viewattr-01-b</title>
+ <desc id="test-desc">Validates viewBox specification and the preserveAspectRatio attribute</desc>
+ <!--======================================================================-->
+ <!--Content of Test Case follows... =====================-->
+ <!--======================================================================-->
+ <g id="test-body-content" transform="translate(0, 30)">
+ <g font-size="9">
+ <desc>Example PreserveAspectRatio - demonstrate available options</desc>
+ <text x="10" y="30">SVG to fit</text>
+ <g transform="translate(20,40)">&Smile;</g>
+ <text x="10" y="110">Viewport 1</text>
+ <g transform="translate(10,120)">&Viewport1;</g>
+ <text x="10" y="180">Viewport 2</text>
+ <g transform="translate(20,190)">&Viewport2;</g>
+ <g id="meet-group-1" transform="translate(120, 50)">
+ <text x="0" y="-20">---------- meet --------------------</text>
+ <g>
+ <text y="-5">xMin*</text>&Viewport1;
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMinYMin meet" viewBox="0 0 30 40" width="50" height="30">&Smile;</svg>
+ </g>
+ <g transform="translate(70,0)">
+ <text y="-5">xMid*</text>&Viewport1;
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid meet" viewBox="0 0 30 40" width="50" height="30">&Smile;</svg>
+ </g>
+ <g transform="translate(0,50)">
+ <text y="-5">xMax*</text>&Viewport1;
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMaxYMax meet" viewBox="0 0 30 40" width="50" height="30">&Smile;</svg>
+ </g>
+ </g>
+ <g id="meet-group-2" transform="translate(300, 50)">
+ <text x="0" y="-20">---------- meet ------------------------</text>
+ <g>
+ <text y="-5">*YMin</text>&Viewport2;
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMinYMin meet" viewBox="0 0 30 40" width="30" height="60">&Smile;</svg>
+ </g>
+ <g transform="translate(50, 0)">
+ <text y="-5">*YMid</text>&Viewport2;
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid meet" viewBox="0 0 30 40" width="30" height="60">&Smile;</svg>
+ </g>
+ <g transform="translate(100, 0)">
+ <text y="-5">*YMax</text>&Viewport2;
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMaxYMax meet" viewBox="0 0 30 40" width="30" height="60">&Smile;</svg>
+ </g>
+ </g>
+ <g id="slice-group-1" transform="translate(120, 185)">
+ <text x="0" y="-20">---------- slice -------------------------</text>
+ <g>
+ <text y="-5">xMin*</text>&Viewport2;
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMinYMin slice" viewBox="0 0 30 40" width="30" height="60">&Smile;</svg>
+ </g>
+ <g transform="translate(50,0)">
+ <text y="-5">xMid*</text>&Viewport2;
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid slice" viewBox="0 0 30 40" width="30" height="60">&Smile;</svg>
+ </g>
+ <g transform="translate(100,0)">
+ <text y="-5">xMax*</text>&Viewport2;
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMaxYMax slice" viewBox="0 0 30 40" width="30" height="60">&Smile;</svg>
+ </g>
+ </g>
+ <g id="slide-group-2" transform="translate(300, 155) translate(0, 30)">
+ <text x="0" y="-20">---------- slice ---------------------</text>
+ <g>
+ <text y="-5">*YMin</text>&Viewport1;
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMinYMin slice" viewBox="0 0 30 40" width="50" height="30">&Smile;</svg>
+ </g>
+ <g transform="translate(70,0)">
+ <text y="-5">*YMid</text>&Viewport1;
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid slice" viewBox="0 0 30 40" width="50" height="30">&Smile;</svg>
+ </g>
+ <g transform="translate(0,50)">
+ <text y="-5">*YMax</text>&Viewport1;
+ <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMaxYMax slice" viewBox="0 0 30 40" width="50" height="30">&Smile;</svg>
+ </g>
+ </g>
+ </g>
+ </g>
+ <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision$</text>
+ <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
+</svg>
<g shape-rendering="geometricPrecision" text-rendering="geometricPrecision" >
<text x="10" y="20" stroke="none" opacity="1" filter="none" >Blur (3x3)</text>
<g opacity="1" filter="none" >
- <image width="50" height="63" xlink:href="../images/filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve1)" />
+ <image width="50" height="63" xlink:href="Resources/filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve1)" />
</g>
<text x="10" y="20" transform="translate(150,0)" stroke="none" opacity="1" filter="none" >Edge Detection (3x3)</text>
<g transform="translate(150,0)" opacity="1" filter="none" >
- <image width="50" height="63" xlink:href="../images/filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve2)" />
+ <image width="50" height="63" xlink:href="Resources/filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve2)" />
</g>
<text x="10" y="20" transform="translate(300,0)" stroke="none" opacity="1" filter="none" >Sharpening (3x3)</text>
<g transform="translate(300,0)" opacity="1" filter="none" >
- <image width="50" height="63" xlink:href="../images/filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve3)" />
+ <image width="50" height="63" xlink:href="Resources/filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve3)" />
</g>
<text x="10" y="20" transform="translate(0,93)" stroke="none" opacity="1" filter="none" >Embossing (3x3)</text>
<g transform="translate(0,93)" opacity="1" filter="none" >
- <image width="50" height="63" xlink:href="../images/filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve4)" />
+ <image width="50" height="63" xlink:href="Resources/filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve4)" />
</g>
<text x="10" y="20" transform="translate(150,93)" stroke="none" opacity="1" filter="none" >Horizontal blur (3x1)</text>
<g transform="translate(150,93)" opacity="1" filter="none" >
- <image width="50" height="63" xlink:href="../images/filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve5)" />
+ <image width="50" height="63" xlink:href="Resources/filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve5)" />
</g>
<text x="10" y="20" transform="translate(300,93)" stroke="none" opacity="1" filter="none" >Vertical blur (1x3)</text>
<g transform="translate(300,93)" opacity="1" filter="none" >
- <image width="50" height="63" xlink:href="../images/filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve6)" />
+ <image width="50" height="63" xlink:href="Resources/filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve6)" />
</g>
</g>
</g>
<!-- Various Surface Scales -->
<g transform="translate(0, 50)">
<text x="90" y="25">Various values for surfaceScale: 1, 10 and -10</text>
- <image xlink:href="../images/bumpMap2.png" x="90" y="30" width="50" height="30" filter="url(#surfaceScaleA)" />
- <image xlink:href="../images/bumpMap2.png" x="160" y="30" width="50" height="30" filter="url(#surfaceScaleB)" />
- <image xlink:href="../images/bumpMap2.png" x="230" y="30" width="50" height="30" filter="url(#surfaceScaleC)" />
+ <image xlink:href="Resources/bumpMap2.png" x="90" y="30" width="50" height="30" filter="url(#surfaceScaleA)" />
+ <image xlink:href="Resources/bumpMap2.png" x="160" y="30" width="50" height="30" filter="url(#surfaceScaleB)" />
+ <image xlink:href="Resources/bumpMap2.png" x="230" y="30" width="50" height="30" filter="url(#surfaceScaleC)" />
</g>
<!-- Various Diffuse Constants -->
<g transform="translate(0, 120)">
<text x="90" y="25">Various values for diffuseConstants: 0, 1 and 2</text>
- <image xlink:href="../images/bumpMap2.png" x="90" y="30" width="50" height="30" filter="url(#diffuseConstantA)" />
- <image xlink:href="../images/bumpMap2.png" x="160" y="30" width="50" height="30" filter="url(#diffuseConstantB)" />
- <image xlink:href="../images/bumpMap2.png" x="230" y="30" width="50" height="30" filter="url(#diffuseConstantC)" />
+ <image xlink:href="Resources/bumpMap2.png" x="90" y="30" width="50" height="30" filter="url(#diffuseConstantA)" />
+ <image xlink:href="Resources/bumpMap2.png" x="160" y="30" width="50" height="30" filter="url(#diffuseConstantB)" />
+ <image xlink:href="Resources/bumpMap2.png" x="230" y="30" width="50" height="30" filter="url(#diffuseConstantC)" />
</g>
<!-- Various Light Colors -->
<g transform="translate(0, 190)">
<text x="90" y="25">Various values for lighting color: red, yellow and blue</text>
- <image xlink:href="../images/bumpMap2.png" x="90" y="30" width="50" height="30" filter="url(#lightingColorA)" />
- <image xlink:href="../images/bumpMap2.png" x="160" y="30" width="50" height="30" filter="url(#lightingColorB)" />
- <image xlink:href="../images/bumpMap2.png" x="230" y="30" width="50" height="30" filter="url(#lightingColorC)" />
+ <image xlink:href="Resources/bumpMap2.png" x="90" y="30" width="50" height="30" filter="url(#lightingColorA)" />
+ <image xlink:href="Resources/bumpMap2.png" x="160" y="30" width="50" height="30" filter="url(#lightingColorB)" />
+ <image xlink:href="Resources/bumpMap2.png" x="230" y="30" width="50" height="30" filter="url(#lightingColorC)" />
</g>
<!-- ===================================================== -->
<!-- Legends -->
<defs>
<filter id="DispMapChecker" filterUnits="objectBoundingBox"
x="0" y="0" width="1" height="1">
- <feImage xlink:href="../images/DisplaceChecker.png"/>
+ <feImage xlink:href="Resources/DisplaceChecker.png"/>
</filter>
<filter id="RotateMap" filterUnits="objectBoundingBox"
x="0" y="0" width="1" height="1">
- <feImage xlink:href="../images/rotate20.png"/>
+ <feImage xlink:href="Resources/rotate20.png"/>
</filter>
<filter id="SphereMap" filterUnits="objectBoundingBox"
x="0" y="0" width="1" height="1">
- <feImage xlink:href="../images/sphere.png"/>
+ <feImage xlink:href="Resources/sphere.png"/>
</filter>
<filter id="RotateMapTest" filterUnits="objectBoundingBox"
x="0" y="0" width="1" height="1">
- <feImage result="Map" xlink:href="../images/rotate20.png"/>
- <feImage result="Texture" xlink:href="../images/DisplaceChecker.png"/>
+ <feImage result="Map" xlink:href="Resources/rotate20.png"/>
+ <feImage result="Texture" xlink:href="Resources/DisplaceChecker.png"/>
<feDisplacementMap in="Texture" in2="Map" scale="64"
xChannelSelector="R" yChannelSelector="G"/>
</filter>
<filter id="SphereMapTest" filterUnits="objectBoundingBox"
x="0" y="0" width="1" height="1">
- <feImage result="Map" xlink:href="../images/sphere.png"/>
- <feImage result="Texture" xlink:href="../images/DisplaceChecker.png"/>
+ <feImage result="Map" xlink:href="Resources/sphere.png"/>
+ <feImage result="Texture" xlink:href="Resources/DisplaceChecker.png"/>
<feDisplacementMap in="Texture" in2="Map" scale="64"
xChannelSelector="R" yChannelSelector="G"/>
</filter>
<g id="test-body-content">
<defs>
<filter id="image">
- <feImage x="145" y="50" width="190" height="190" xlink:href="../images/image1.jpg"/>
+ <feImage x="145" y="50" width="190" height="190" xlink:href="Resources/image1.jpg"/>
</filter>
</defs>
<text font-family="Arial" font-size="12" x="240" y="20" text-anchor="middle" >Basic test of feImage filter support.</text>
<text x="165" y="25">(45, 0)</text>
<text x="260" y="25">(0, 45)</text>
<text x="355" y="25">(45, 45)</text>
- <image xlink:href="../images/bumpMap2.png" x="70" y="30" width="50" height="30" filter="url(#distantLightA)"/>
- <image xlink:href="../images/bumpMap2.png" x="165" y="30" width="50" height="30" filter="url(#distantLightB)"/>
- <image xlink:href="../images/bumpMap2.png" x="260" y="30" width="50" height="30" filter="url(#distantLightC)"/>
- <image xlink:href="../images/bumpMap2.png" x="355" y="30" width="50" height="30" filter="url(#distantLightD)"/>
+ <image xlink:href="Resources/bumpMap2.png" x="70" y="30" width="50" height="30" filter="url(#distantLightA)"/>
+ <image xlink:href="Resources/bumpMap2.png" x="165" y="30" width="50" height="30" filter="url(#distantLightB)"/>
+ <image xlink:href="Resources/bumpMap2.png" x="260" y="30" width="50" height="30" filter="url(#distantLightC)"/>
+ <image xlink:href="Resources/bumpMap2.png" x="355" y="30" width="50" height="30" filter="url(#distantLightD)"/>
</g>
<!-- Various fePointLights -->
<g transform="translate(0, 120)">
<text x="355" y="25">(50, 30, 10)</text>
</g>
<g>
- <image transform="translate(70, 150)" xlink:href="../images/bumpMap2.png" width="50" height="30" filter="url(#pointLightA)"/>
- <image transform="translate(165, 150)" xlink:href="../images/bumpMap2.png" width="50" height="30" filter="url(#pointLightB)"/>
- <image transform="translate(260, 150)" xlink:href="../images/bumpMap2.png" width="50" height="30" filter="url(#pointLightC)"/>
- <image transform="translate(355, 150)" xlink:href="../images/bumpMap2.png" width="50" height="30" filter="url(#pointLightD)"/>
+ <image transform="translate(70, 150)" xlink:href="Resources/bumpMap2.png" width="50" height="30" filter="url(#pointLightA)"/>
+ <image transform="translate(165, 150)" xlink:href="Resources/bumpMap2.png" width="50" height="30" filter="url(#pointLightB)"/>
+ <image transform="translate(260, 150)" xlink:href="Resources/bumpMap2.png" width="50" height="30" filter="url(#pointLightC)"/>
+ <image transform="translate(355, 150)" xlink:href="Resources/bumpMap2.png" width="50" height="30" filter="url(#pointLightD)"/>
</g>
<!-- feSpotLight -->
<g transform="translate(0, 210)">
<rect x="205" y="30" width="50" height="30"/>
<rect x="320" y="30" width="50" height="30"/>
</g>
- <image xlink:href="../images/bumpMap2.png" x="90" y="30" width="50" height="30" filter="url(#surfaceScaleA)"/>
- <image xlink:href="../images/bumpMap2.png" x="205" y="30" width="50" height="30" filter="url(#surfaceScaleB)"/>
- <image xlink:href="../images/bumpMap2.png" x="320" y="30" width="50" height="30" filter="url(#surfaceScaleC)"/>
+ <image xlink:href="Resources/bumpMap2.png" x="90" y="30" width="50" height="30" filter="url(#surfaceScaleA)"/>
+ <image xlink:href="Resources/bumpMap2.png" x="205" y="30" width="50" height="30" filter="url(#surfaceScaleB)"/>
+ <image xlink:href="Resources/bumpMap2.png" x="320" y="30" width="50" height="30" filter="url(#surfaceScaleC)"/>
</g>
<!-- Various Specular Constants -->
<g transform="translate(0, 90)">
<rect x="205" y="30" width="50" height="30"/>
<rect x="320" y="30" width="50" height="30"/>
</g>
- <image xlink:href="../images/bumpMap2.png" x="90" y="30" width="50" height="30" filter="url(#specularConstantA)"/>
- <image xlink:href="../images/bumpMap2.png" x="205" y="30" width="50" height="30" filter="url(#specularConstantB)"/>
- <image xlink:href="../images/bumpMap2.png" x="320" y="30" width="50" height="30" filter="url(#specularConstantC)"/>
+ <image xlink:href="Resources/bumpMap2.png" x="90" y="30" width="50" height="30" filter="url(#specularConstantA)"/>
+ <image xlink:href="Resources/bumpMap2.png" x="205" y="30" width="50" height="30" filter="url(#specularConstantB)"/>
+ <image xlink:href="Resources/bumpMap2.png" x="320" y="30" width="50" height="30" filter="url(#specularConstantC)"/>
</g>
<!-- Various Specular Exponents -->
<g transform="translate(0, 160)">
<rect x="205" y="30" width="50" height="30"/>
<rect x="320" y="30" width="50" height="30"/>
</g>
- <image xlink:href="../images/bumpMap2.png" x="90" y="30" width="50" height="30" filter="url(#specularExponentA)"/>
- <image xlink:href="../images/bumpMap2.png" x="205" y="30" width="50" height="30" filter="url(#specularExponentB)"/>
- <image xlink:href="../images/bumpMap2.png" x="320" y="30" width="50" height="30" filter="url(#specularExponentC)"/>
+ <image xlink:href="Resources/bumpMap2.png" x="90" y="30" width="50" height="30" filter="url(#specularExponentA)"/>
+ <image xlink:href="Resources/bumpMap2.png" x="205" y="30" width="50" height="30" filter="url(#specularExponentB)"/>
+ <image xlink:href="Resources/bumpMap2.png" x="320" y="30" width="50" height="30" filter="url(#specularExponentC)"/>
</g>
<!-- Various Light Colors -->
<g transform="translate(0, 230)">
<rect x="205" y="30" width="50" height="30"/>
<rect x="320" y="30" width="50" height="30"/>
</g>
- <image xlink:href="../images/bumpMap2.png" x="90" y="30" width="50" height="30" filter="url(#lightingColorA)"/>
- <image xlink:href="../images/bumpMap2.png" x="205" y="30" width="50" height="30" filter="url(#lightingColorB)"/>
- <image xlink:href="../images/bumpMap2.png" x="320" y="30" width="50" height="30" filter="url(#lightingColorC)"/>
+ <image xlink:href="Resources/bumpMap2.png" x="90" y="30" width="50" height="30" filter="url(#lightingColorA)"/>
+ <image xlink:href="Resources/bumpMap2.png" x="205" y="30" width="50" height="30" filter="url(#lightingColorB)"/>
+ <image xlink:href="Resources/bumpMap2.png" x="320" y="30" width="50" height="30" filter="url(#lightingColorC)"/>
</g>
<!-- ===================================================== -->
<!-- Legends -->
font-family: 'TestComic';
font-weight: normal;
font-style: normal;
- src: url("../images/ext-TestComic.svg#Font") format(svg)
+ src: url("Resources/ext-TestComic.svg#Font") format(svg)
}
]]>
</style-->
<font-face font-family="TestComic">
<font-face-src>
- <font-face-uri xlink:href="../images/ext-TestComic.svg#Font"/>
+ <font-face-uri xlink:href="Resources/ext-TestComic.svg#Font"/>
</font-face-src>
</font-face>
</defs>
font-family: 'TestComic';
font-weight: normal;
font-style: normal;
- src: url("../images/ext-TestComic.svg#Font") format(svg)
+ src: url("Resources/ext-TestComic.svg#Font") format(svg)
}
]]>
</style>
<!--font-face font-family="TestComic">
<font-face-src>
- <font-face-uri xlink:href="../images/ext-TestComic.svg#Font"/>
+ <font-face-uri xlink:href="Resources/ext-TestComic.svg#Font"/>
</font-face-src>
</font-face-->
</defs>
<!--======================================================================-->
<g id="test-body-content">
<defs>
- <cursor id="magglass" xlink:href="../images/magnify.png" x="10" y="11"/>
+ <cursor id="magglass" xlink:href="Resources/magnify.png" x="10" y="11"/>
</defs>
<text x="240" y="25" text-anchor="middle" font-size="26">Text Cursor
<a xlink:href="http://www.w3.org/TR/SVG/interact#Cursors" fill="blue" xlink:show="new">Pointer Cursor</a>
<g fill="#000" font-family="Arial" font-size="40">
<!-- Test the order of events -->
<!-- Ensure that events get the event before the hyperlink. -->
- <a xlink:href="../images/interact-order-02-b-targ.svg">
+ <a xlink:href="Resources/interact-order-02-b-targ.svg">
<circle onclick="bubbleNo(evt, 'red')" onmouseout="bubbleNo(evt, 'inherit')" cx="70" cy="120" r="50"/>
<circle onclick="bubbleYes(evt, 'blue')" onmouseout="bubbleNo(evt, 'inherit')" cx="70" cy="240" r="50"/>
</a>
<g fill="#000" font-family="Arial" font-size="40">
<!-- Ensure that events get the event before the hyperlink which
happens before text selection -->
- <a xlink:href="../images/interact-order-03-b-targ.svg" font-size="40">
+ <a xlink:href="Resources/interact-order-03-b-targ.svg" font-size="40">
<text x="20" y="90" onclick="bubbleNo(evt, 'red')" onmouseout="bubbleNo(evt, 'inherit')">
String turns red on click
</text>
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content" transform="scale(2)">
- <a xlink:href="../images/linkingCircle-f.svg#circle-2">
+ <a xlink:href="Resources/linkingCircle-f.svg#circle-2">
<path fill="aqua" stroke="blue" d="M 185,40 h -100 v -12 l -45 36 l 45 36 v -12 h 100 z"/>
</a>
<!-- Code from target file, linkingCircle-f.svg...
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content" transform="scale(2)">
- <a xlink:href="../images/linkingCircle-f.svg#xpointer(id('circle-2'))">
+ <a xlink:href="Resources/linkingCircle-f.svg#xpointer(id('circle-2'))">
<path fill="yellow" stroke="blue" d="M 185,40 h -100 v -12 l -45 36 l 45 36 v -12 h 100 z"/>
</a>
<!-- Code from target file, linkingCircle-f.svg...
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content" transform="scale(2)">
- <a xlink:href="../images/linkingCircle-f.svg#svgView(viewBox(64,227,72,72))">
+ <a xlink:href="Resources/linkingCircle-f.svg#svgView(viewBox(64,227,72,72))">
<path fill="lime" stroke="blue" d="M 185,40 h -100 v -12 l -45 36 l 45 36 v -12 h 100 z"/>
</a>
<!-- Code from target file, linkingCircle-f.svg...
<g id="test-body-content">
<text x="90" y="16" font-size="12" >Basic out-bound links and the 'a' element.</text>
<!-- First linking test: link to another SVG file in same location. -->
- <a xlink:href="../images/linkingToc-t.svg">
+ <a xlink:href="Resources/linkingToc-t.svg">
<path fill="yellow" stroke="blue" d="M 165,40 h 100 v -12 l 45 36 l -45 36 v -12 h -100 z"/>
</a>
<!-- Second linking test: link to another object in this file. -->
<text x="50" y="16" font-size="12" >Link test of the 'view' element and its attributes, 2 of 2, external.</text>
<g transform="translate(-150,75)">
<rect x="300" y="55" width="125" height="85" fill="#aaa" />
- <a xlink:href="../images/linking-uri-01-b.svg#rect-view">
+ <a xlink:href="Resources/linking-uri-01-b.svg#rect-view">
<text x="320" y="70" fill="red" >Go to Rectangle</text>
</a>
- <a xlink:href="../images/linking-uri-01-b.svg#ellipse-view">
+ <a xlink:href="Resources/linking-uri-01-b.svg#ellipse-view">
<text x="320" y="90" fill="blue" >Go to Ellipse</text>
</a>
- <a xlink:href="../images/linking-uri-01-b.svg#circle-view">
+ <a xlink:href="Resources/linking-uri-01-b.svg#circle-view">
<text x="320" y="110" fill="yellow" >Go to Circle</text>
</a>
- <a xlink:href="../images/linking-uri-01-b.svg#polygon-view">
+ <a xlink:href="Resources/linking-uri-01-b.svg#polygon-view">
<text x="320" y="130" fill="green" >Go to Polygon</text>
</a>
<text x="310" y="150" font-size="12" >Click element's line</text>
<!--======================================================================-->
<g id="test-body-content">
<text x="75" y="16" font-size="12">Simple exercise of xlink attributes on the 'a' element.</text>
- <a xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" xlink:href="../images/linkingToc-t.svg" xlink:role="figure-out-a-role-value-and-associated-xmlns" xlink:title="TOC of Linking BE tests." target="_self">
+ <a xlink:type="simple" xlink:show="replace" xlink:actuate="onRequest" xlink:href="Resources/linkingToc-t.svg" xlink:role="figure-out-a-role-value-and-associated-xmlns" xlink:title="TOC of Linking BE tests." target="_self">
<path d="M 135 122 l 130 0 l -65 130 z" fill="lime" stroke="blue"/>
</a>
<text x="160" y="116" font-size="12">Click for TOC</text>
</defs>
<g>
- <image xlink:href="../images/bluesquidj.png" preserveAspectRatio="none" x="30" y="20" width="410" height="140"/>
+ <image xlink:href="Resources/bluesquidj.png" preserveAspectRatio="none" x="30" y="20" width="410" height="140"/>
<text x="55" y="130" font-size="100" font-family="Impact" fill="yellow">Clip Test</text>
</g>
<g>
- <image xlink:href="../images/bluesquidj.png" preserveAspectRatio="none" x="20" y="170" width="410" height="160" clip-path="url(#sample)"/>
+ <image xlink:href="Resources/bluesquidj.png" preserveAspectRatio="none" x="20" y="170" width="410" height="160" clip-path="url(#sample)"/>
</g>
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision$</text>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd"
+[
+<!ENTITY shape " <path d='M60,0 l60,0 l60,60 l0,60 l-60,60 l-60,0 l-60,-60 l0,-60 z'/>">
+]>
+
+<!--======================================================================-->
+<!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
+<!--= Institute of Technology, Institut National de Recherche en =-->
+<!--= Informatique et en Automatique, Keio University). All Rights =-->
+<!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
+<!--======================================================================-->
+<!-- ===================================================================== -->
+<!-- rendering-shape-BE-03.svg -->
+<!-- renamed for 1.1 suite to render-elems-03-t.svg -->
+<!-- Author : Vincent Hardy, 02-Mar-2000 -->
+<!-- Revised for 1.1 : Phil Armstrong Feb/11/2002 -->
+<!--======================================================================-->
+<svg version="1.1" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" viewBox="0 0 480 360" width="100%" height="100%">
+ <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
+ <OperatorScript version="$Revision$" testname="render-elems-03-t.svg">
+ <Paragraph>
+ Verifies that shapes can be filled, stroked and the order of filling and stroking.
+ </Paragraph>
+ <Paragraph>
+ There is one pair of octagons. These are filled plus stroked.
+ </Paragraph>
+ <Paragraph>
+ The rendered image should match the reference image except for the text which may
+ show minor layout differences.
+ </Paragraph>
+ <Paragraph>
+ The test uses the 'rect' element, as well as basic fill (solid primary colors),
+ stroke (primary color 1-pixel and wide lines), font-family (Arial) and font-size properties -
+ the common prerequisites.
+ </Paragraph>
+ </OperatorScript>
+ </SVGTestCase>
+ <title id="test-title">render-elems-03-t</title>
+ <desc id="test-desc">This test validates that shapes can be both filled and stroked.</desc>
+ <!--======================================================================-->
+ <!--Content of Test Case follows... =====================-->
+ <!--======================================================================-->
+ <g id="test-body-content" >
+ <!-- ====================================================================== -->
+ <!-- Now, fill and stroke. The fill should happen first -->
+ <!-- ====================================================================== -->
+ <g transform="translate(30, 80)">
+ <g fill="yellow" stroke="red" stroke-width="8" >&shape;</g>
+ <g stroke="black" fill="blue" stroke-width="8" transform="translate(200, 0)">&shape;</g>
+ <text x="70" y="-30" font-size="28">Shape fill and stroke</text>
+ </g>
+ </g>
+ <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision$</text>
+ <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
+</svg>
+
<!-- the image. -->
<text font-family="larabie-anglepoise" font-size="120" x="30" y="90">SVG</text>
<rect x="70" y="55" width="130" height="70" fill="rgb(130, 0, 50)"/>
- <image x="162" y="75" width="80" height="80" xlink:href="../images/sign.png"/>
+ <image x="162" y="75" width="80" height="80" xlink:href="Resources/sign.png"/>
</g>
</g>
</g>
<!-- the image. -->
<text font-family="larabie-anglepoise" font-size="120" x="30" y="90">SVG</text>
<rect x="70" y="55" width="130" height="70" fill="rgb(130, 0, 50)"/>
- <image x="162" y="75" width="80" height="80" xlink:href="../images/sign.png"/>
+ <image x="162" y="75" width="80" height="80" xlink:href="Resources/sign.png"/>
</g>
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision$</text>
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content">
- <image id="image1JPEG" x="240" y="0" width="240" height="150" xlink:href="../images/struct-image-01.jpg"/>
- <image id="image1PNG" x="240" y="150" width="240" height="150" xlink:href="../images/struct-image-01.png"/>
+ <image id="image1JPEG" x="240" y="0" width="240" height="150" xlink:href="Resources/struct-image-01.jpg"/>
+ <image id="image1PNG" x="240" y="150" width="240" height="150" xlink:href="Resources/struct-image-01.png"/>
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision$</text>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
<!--======================================================================-->
<g id="test-body-content">
<defs>
- <image id="image1" x="0" y="0" width="240" height="150" xlink:href="../images/struct-image-02.jpg"/>
+ <image id="image1" x="0" y="0" width="240" height="150" xlink:href="Resources/struct-image-02.jpg"/>
<svg version="1.1" baseProfile="basic" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg01" x="240" y="0" width="240" height="225">
<rect width="100%" height="100%" fill="red" />
</svg>
<!-- ====================================================================== -->
<g id="test-body-content">
<rect x="23" y="13" width="434" height="224" stroke="none" fill="black" />
- <image x="25" y="15" width="430" height="48" xlink:href="../images/gam030.png"/>
- <image x="25" y="43" width="430" height="48" xlink:href="../images/gam045.png"/>
- <image x="25" y="91" width="430" height="48" xlink:href="../images/gam056.png"/>
- <image x="25" y="139" width="430" height="48" xlink:href="../images/gam100.png"/>
- <image x="25" y="187" width="430" height="48" xlink:href="../images/gam200.png"/>
+ <image x="25" y="15" width="430" height="48" xlink:href="Resources/gam030.png"/>
+ <image x="25" y="43" width="430" height="48" xlink:href="Resources/gam045.png"/>
+ <image x="25" y="91" width="430" height="48" xlink:href="Resources/gam056.png"/>
+ <image x="25" y="139" width="430" height="48" xlink:href="Resources/gam100.png"/>
+ <image x="25" y="187" width="430" height="48" xlink:href="Resources/gam200.png"/>
<text x="25" y="285" font-size="40">Gamma correction</text>
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision$</text>
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content">
- <image id="imageSVG" x="0" y="0" width="240" height="150" xlink:href="../images/rects.svg"/>
+ <image id="imageSVG" x="0" y="0" width="240" height="150" xlink:href="Resources/rects.svg"/>
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision$</text>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
<!--======================================================================-->
<g id="test-body-content">
<symbol id="imageRef1" viewBox="0 0 1000 1000" preserveAspectRatio="none">
- <image id="image1" x="0" y="0" width="1000" height="1000" xlink:href="../images/struct-symbol-01.png"/>
+ <image id="image1" x="0" y="0" width="1000" height="1000" xlink:href="Resources/struct-symbol-01.png"/>
</symbol>
<symbol id="largeRect">
<rect x="0" y="0" width="1000" height="1000"/>
<text x="75" y="25" font-family="Arial" font-size="12" fill="blue">Test 'tref' element with an external referenced string.</text>
<!-- External tref reference, to another file -->
<text x="75" y="200" font-size="18" font-family="Arial" fill="green">
- <tref xlink:href="../images/text-extTref-BE-18-targ.svg#tref-external-reference"/>
+ <tref xlink:href="Resources/text-extTref-BE-18-targ.svg#tref-external-reference"/>
</text>
<rect x="73" y="183" width="260" height="22" fill="none" stroke="black"/>
<text x="73" y="217" font-family="Arial" font-size="12" fill="black">'tref' to a string in another file</text>