- From: Erik Dahlstrvm via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 07 Jan 2011 13:06:39 +0000
- To: public-fx-editors@w3.org
Update of /sources/public/Graphics-FX/modules/filters/test/svg In directory hutz:/tmp/cvs-serv18228 Added Files: filters-gauss-201.svg filters-morph-201.svg filters-region-201.svg filters-region-202.svg filters-region-203.svg filters-turb-201.svg filters-turb-202.svg Log Message: Moved filters spec from dev.w3.org/SVG/modules/filters. --- NEW FILE: filters-turb-202.svg --- <svg id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!--======================================================================--> <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =--> <!--= Institute of Technology, European Research Consortium for =--> <!--= Informatics and Mathematics (ERCIM), Keio University). =--> <!--= All Rights Reserved. =--> <!--= See http://www.w3.org/Consortium/Legal/. =--> <!--======================================================================--> <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" template-version="1.3" reviewer="[reviewer]" author="ED" status="created" version="$Revision: 1.1 $" testname="$RCSfile: filters-turb-202.svg,v $"> <d:testDescription> <d:testComponent xmlns="http://www.w3.org/1999/xhtml" xlink:href="#assert_turbulenceStitchTilesLacunaValue"> <p> Tests the <a>'feTurbulence/stitchTiles'</a> attribute on <a>'feTurbulence'</a>. </p> </d:testComponent> </d:testDescription> <d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> <p> There should be three rectangular filtered areas, showing some turbulence noise. </p> </d:operatorScript> <d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> <p> The test has passed if the rightmost and the leftmost rects are exactly the same, and the middle one is different. <!-- FIXME: Add better pass criteria. --> </p> </d:passCriteria> </d:SVGTestCase> <title id="test-title">$RCSfile: filters-turb-202.svg,v $</title> <defs> <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> <font-face-src> <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> </font-face-src> </font-face> </defs> <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="12"> <defs> <filter id="t1" x="0" y="0" width="1" height="1" primitiveUnits="objectBoundingBox"> <feTurbulence width="0.6" height="0.6" baseFrequency="0.15" /> <feTile/> </filter> <filter id="t2" x="0" y="0" width="1" height="1" primitiveUnits="objectBoundingBox"> <feTurbulence width="0.6" height="0.6" baseFrequency="0.15" stitchTiles="stitch"/> <feTile/> </filter> <filter id="t3" x="0" y="0" width="1" height="1" primitiveUnits="objectBoundingBox"> <feTurbulence width="0.6" height="0.6" baseFrequency="0.15" stitchTiles="noStitch"/> <feTile/> </filter> </defs> <text x="240" y="70" font-size="24" text-anchor="middle">feTurbulence stitchTiles attribute</text> <g transform="translate(80 120)"> <g transform="translate(-10 0)"> <rect width="100" height="100" filter="url(#t1)"/> <text x="50" y="120" text-anchor="middle">lacuna value</text> </g> <g transform="translate(110 0)"> <rect width="100" height="100" filter="url(#t2)"/> <text x="50" y="120" text-anchor="middle">stitch</text> </g> <g transform="translate(230 0)"> <rect width="100" height="100" filter="url(#t3)"/> <text x="50" y="120" text-anchor="middle">noStitch</text> </g> </g> </g> <g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.1 $</text> </g> <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> <!-- comment out this watermark once the test is approved --> <g id="draft-watermark"> <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> </g> </svg> --- NEW FILE: filters-region-202.svg --- <svg id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!--======================================================================--> <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =--> <!--= Institute of Technology, European Research Consortium for =--> <!--= Informatics and Mathematics (ERCIM), Keio University). =--> <!--= All Rights Reserved. =--> <!--= See http://www.w3.org/Consortium/Legal/. =--> <!--======================================================================--> <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" reviewer="[reviewer]" owner="ED" desc="Test filterUnits" status="created" version="$Revision: 1.1 $" testname="$RCSfile: filters-region-202.svg,v $"> <d:TestDescription xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"> <d:Reference xmlns="http://www.w3.org/1999/xhtml" xlink:href="SVGFilter.html#FilterEffectsRegion"> <p> This test tests the 'filterUnits' attribute with the value 'userSpaceOnUse'. </p> </d:Reference> </d:TestDescription> <d:OperatorScript xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" xmlns="http://www.w3.org/1999/xhtml"> <p> Load the test, and inspect the image for any traces of red. </p> </d:OperatorScript> <d:PassCriteria xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" xmlns="http://www.w3.org/1999/xhtml"> <p> The test has passed if: <ul> <li>The test shows one green rectangle split into two subrectangles that have equal size</li> <li>There is no red visible</li> <li>There is no green visible outside the two stroked subrectangles</li> </ul> </p> </d:PassCriteria> </SVGTestCase> <title id="test-title">$RCSfile: filters-region-202.svg,v $</title> <defs> <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> <font-face-src> <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> </font-face-src> </font-face> </defs> <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> <defs> <!-- test percentage resolving --> <filter id="filter11" x="50" y="40" width="79.16%" height="33.33%" filterUnits="userSpaceOnUse"> <feFlood flood-color="lime"/> </filter> <!-- test lacuna values --> <filter id="filter12" filterUnits="userSpaceOnUse"> <feFlood flood-color="lime"/> </filter> </defs> <rect x="50" y="40" width="380" height="240" fill="red"/> <rect x="50" y="40" width="10" height="10" fill="red" filter="url(#filter11)"/> <svg x="82" y="170" width="316" height="100" overflow="visible"> <rect x="259" y="52" width="95" height="60" fill="red" filter="url(#filter12)"/> </svg> <line x1="50" y1="160" x2="430" y2="160" stroke="black"/> <rect x="50" y="40" width="380" height="240" fill="none" stroke="black"/> </g> <g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.1 $</text> </g> <rect xmlid="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> <!-- comment out this watermark once the test is approved --> <g id="draft-watermark"> <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> </g> </svg> --- NEW FILE: filters-region-201.svg --- <svg id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!--======================================================================--> <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =--> <!--= Institute of Technology, European Research Consortium for =--> <!--= Informatics and Mathematics (ERCIM), Keio University). =--> <!--= All Rights Reserved. =--> <!--= See http://www.w3.org/Consortium/Legal/. =--> <!--======================================================================--> <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" reviewer="[reviewer]" owner="ED" desc="Test filter effects region" status="created" version="$Revision: 1.1 $" testname="$RCSfile: filters-region-201.svg,v $"> <d:TestDescription xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"> <d:Reference xmlns="http://www.w3.org/1999/xhtml" xlink:href="SVGFilter.html#FilterEffectsRegion"> <p> This test tests the x, y, width and height attributes on the 'filter' element. These attributes define the filter effects region. </p> </d:Reference> </d:TestDescription> <d:OperatorScript xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" xmlns="http://www.w3.org/1999/xhtml"> <p> Load the test, and inspect the image for any traces of red, or misalignments. </p> </d:OperatorScript> <d:PassCriteria xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" xmlns="http://www.w3.org/1999/xhtml"> <p> The test has passed if: <ul> <li>The test shows one green rectangle split into four subrectangles that have equal size</li> <li>There is no red visible</li> </ul> </p> </d:PassCriteria> </SVGTestCase> <title id="test-title">$RCSfile: filters-region-201.svg,v $</title> <defs> <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> <font-face-src> <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> </font-face-src> </font-face> </defs> <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> <defs> <!-- test small region --> <filter id="filter11" x="0" y="0" width="50%" height="50%"> <feFlood flood-color="lime"/> </filter> <!-- test large region --> <filter id="filter12" x="-20%" y="-20%" width="200%" height="200%"> <feFlood flood-color="lime"/> </filter> <!-- test lacuna values --> <filter id="filter21"> <feFlood flood-color="lime"/> </filter> <!-- test negative width/height values --> <filter id="filter22" width="-1" height="-20%"> <feFlood flood-color="red"/> </filter> </defs> <rect x="50" y="40" width="380" height="240" fill="red"/> <rect x="50" y="40" width="380" height="240" fill="red" filter="url(#filter11)"/> <rect x="259" y="52" width="95" height="60" fill="red" filter="url(#filter12)"/> <rect x="66" y="170" width="158" height="100" fill="red" filter="url(#filter21)"/> <rect x="240" y="160" width="190" height="120" fill="lime"/> <rect x="240" y="160" width="170" height="120" fill="red" filter="url(#filter22)"/> <line x1="240" y1="40" x2="240" y2="280" stroke="black"/> <line x1="50" y1="160" x2="430" y2="160" stroke="black"/> </g> <g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.1 $</text> </g> <rect xmlid="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> <!-- comment out this watermark once the test is approved --> <g id="draft-watermark"> <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> </g> </svg> --- NEW FILE: filters-gauss-201.svg --- <svg id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!--======================================================================--> <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =--> <!--= Institute of Technology, European Research Consortium for =--> <!--= Informatics and Mathematics (ERCIM), Keio University). =--> <!--= All Rights Reserved. =--> <!--= See http://www.w3.org/Consortium/Legal/. =--> <!--======================================================================--> <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" reviewer="[reviewer]" owner="ED" desc="Negative stdDeviation attribute values" status="created" version="$Revision: 1.1 $" testname="$RCSfile: filters-gauss-201.svg,v $"> <d:TestDescription xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"> <d:Reference xmlns="http://www.w3.org/1999/xhtml" xlink:href="SVGFilter.html#feGaussianBlur"> <p> This test tests negative values for 'stdDeviation' on 'feGaussianBlur'. </p> </d:Reference> </d:TestDescription> <d:OperatorScript xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" xmlns="http://www.w3.org/1999/xhtml"> <p> Run the test. No interaction required. </p> </d:OperatorScript> <d:PassCriteria xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" xmlns="http://www.w3.org/1999/xhtml"> <p> The test has passed if there are two blurred images and they both look exactly the same. </p> </d:PassCriteria> </SVGTestCase> <title id="test-title">$RCSfile: filters-gauss-201.svg,v $</title> <defs> <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> <font-face-src> <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> </font-face-src> </font-face> </defs> <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> <defs> <filter id="filter1"> <feGaussianBlur stdDeviation="6"/> </filter> <filter id="filter2"> <feGaussianBlur stdDeviation="-6"/> </filter> <filter id="filter3"> <feGaussianBlur stdDeviation="-6 6"/> </filter> <filter id="filter4"> <feGaussianBlur stdDeviation="6 -6"/> </filter> </defs> <circle cx="180" cy="100" r="30" fill="red"/> <circle cx="300" cy="100" r="30" fill="red"/> <circle cx="180" cy="220" r="30" fill="red"/> <circle cx="300" cy="220" r="30" fill="red"/> <circle cx="180" cy="100" r="50" filter="url(#filter1)" fill="lime"/> <circle cx="300" cy="100" r="50" filter="url(#filter2)" fill="lime"/> <circle cx="180" cy="220" r="50" filter="url(#filter3)" fill="lime"/> <circle cx="300" cy="220" r="50" filter="url(#filter4)" fill="lime"/> </g> <g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.1 $</text> </g> <rect xmlid="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> <!-- comment out this watermark once the test is approved --> <g id="draft-watermark"> <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> </g> </svg> --- NEW FILE: filters-morph-201.svg --- <svg id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!--======================================================================--> <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =--> <!--= Institute of Technology, European Research Consortium for =--> <!--= Informatics and Mathematics (ERCIM), Keio University). =--> <!--= All Rights Reserved. =--> <!--= See http://www.w3.org/Consortium/Legal/. =--> <!--======================================================================--> <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" template-version="1.3" reviewer="[reviewer]" author="ED" status="created" version="$Revision: 1.1 $" testname="$RCSfile: filters-morph-201.svg,v $"> <d:testDescription> <d:testComponent xmlns="http://www.w3.org/1999/xhtml" xlink:href="SVGFilter.html#feMorphologyElement"> <p> Tests various values for the <a>'radius'</a> attribute on <a>'feMorphology'</a>. </p> </d:testComponent> </d:testDescription> <d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> <p> Run the test. No interaction required. </p> </d:operatorScript> <d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> <p> The test has passed if there are six lines of gradually thinning text, with the boldest line of text at the top, and no red visible. </p> </d:passCriteria> </d:SVGTestCase> <title id="test-title">$RCSfile: filters-morph-201.svg,v $</title> <defs> <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> <font-face-src> <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> </font-face-src> </font-face> </defs> <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="12"> <defs> <filter id="morph0"> <feMorphology type="erode" radius="0"/> </filter> <filter id="morph1"> <feMorphology type="erode" radius="0.5"/> </filter> <filter id="morph2"> <feMorphology type="erode" radius="1"/> </filter> <filter id="morph3"> <feMorphology type="erode" radius="1.5"/> </filter> <filter id="morph4"> <feMorphology type="erode" radius="2"/> </filter> <filter id="morph5"> <feMorphology type="erode" radius="3"/> </filter> </defs> <text x="240" y="80" font-size="48" text-anchor="middle" stroke="red" fill="red">Erode radius=0.0</text> <text x="240" y="80" font-size="48" text-anchor="middle" filter="url(#morph0)" stroke="black">Erode radius=0.0</text> <text x="240" y="120" font-size="48" text-anchor="middle" filter="url(#morph1)" stroke="black">Erode radius=0.5</text> <text x="240" y="160" font-size="48" text-anchor="middle" filter="url(#morph2)" stroke="black">Erode radius=1.0</text> <text x="240" y="200" font-size="48" text-anchor="middle" filter="url(#morph3)" stroke="black">Erode radius=1.5</text> <text x="240" y="240" font-size="48" text-anchor="middle" filter="url(#morph4)" stroke="black">Erode radius=2.0</text> <text x="240" y="280" font-size="48" text-anchor="middle" filter="url(#morph5)" stroke="black">Erode radius=3.0</text> </g> <g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.1 $</text> </g> <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> <!-- comment out this watermark once the test is approved --> <g id="draft-watermark"> <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> </g> </svg> --- NEW FILE: filters-region-203.svg --- <svg id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!--======================================================================--> <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =--> <!--= Institute of Technology, European Research Consortium for =--> <!--= Informatics and Mathematics (ERCIM), Keio University). =--> <!--= All Rights Reserved. =--> <!--= See http://www.w3.org/Consortium/Legal/. =--> <!--======================================================================--> <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" reviewer="[reviewer]" owner="ED" desc="Test filterUnits" status="created" version="$Revision: 1.1 $" testname="$RCSfile: filters-region-203.svg,v $"> <d:TestDescription xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"> <d:Reference xmlns="http://www.w3.org/1999/xhtml" xlink:href="SVGFilter.html#FilterEffectsRegion"> <p> This test tests the 'filterUnits' attribute with the value 'userSpaceOnUse'. </p> </d:Reference> </d:TestDescription> <d:OperatorScript xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" xmlns="http://www.w3.org/1999/xhtml"> <p> Load the test, and inspect the image for any traces of red. </p> </d:OperatorScript> <d:PassCriteria xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" xmlns="http://www.w3.org/1999/xhtml"> <p> The test has passed if: <ul> <li>The test shows one green rectangle split into two subrectangles that have equal size</li> <li>There is no red visible</li> <li>There is no green visible outside the two stroked subrectangles</li> </ul> </p> </d:PassCriteria> </SVGTestCase> <title id="test-title">$RCSfile: filters-region-203.svg,v $</title> <defs> <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> <font-face-src> <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> </font-face-src> </font-face> </defs> <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> <defs> <!-- test percentage resolving --> <filter id="filter11" x="0%" y="0%" width="100%" height="100%" primitiveUnits="objectBoundingBox"> <feFlood flood-color="lime" x="10%" y="10%" width="80%" height="80%"/> </filter> <!-- test lacuna values --> <filter id="filter12" filterUnits="userSpaceOnUse"> <feFlood flood-color="lime"/> </filter> </defs> <rect x="50" y="40" width="380" height="240" fill="red"/> <rect x="50" y="40" width="10" height="10" fill="red" filter="url(#filter11)"/> <svg x="82" y="170" width="316" height="100" overflow="visible"> <rect x="259" y="52" width="95" height="60" fill="red" filter="url(#filter12)"/> </svg> <line x1="50" y1="160" x2="430" y2="160" stroke="black"/> <rect x="50" y="40" width="380" height="240" fill="none" stroke="black"/> </g> <g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.1 $</text> </g> <rect xmlid="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> <!-- comment out this watermark once the test is approved --> <g id="draft-watermark"> <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> </g> </svg> --- NEW FILE: filters-turb-201.svg --- <svg id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <!--======================================================================--> <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =--> <!--= Institute of Technology, European Research Consortium for =--> <!--= Informatics and Mathematics (ERCIM), Keio University). =--> <!--= All Rights Reserved. =--> <!--= See http://www.w3.org/Consortium/Legal/. =--> <!--======================================================================--> <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" template-version="1.3" reviewer="[reviewer]" author="ED" status="created" version="$Revision: 1.1 $" testname="$RCSfile: filters-turb-201.svg,v $"> <d:testDescription> <d:testComponent xmlns="http://www.w3.org/1999/xhtml" xlink:href="http://www.w3.org/TR/SVG11/[chapter]"> <p> Tests the <a>'feTurbulence/type'</a> attribute on <a>'feTurbulence'</a>. </p> </d:testComponent> </d:testDescription> <d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> <p> There should be three rectangular filtered areas, showing some turbulence noise. </p> </d:operatorScript> <d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> <p> The test has passed if the rightmost and the leftmost rects are exactly the same, and the middle one is different. <!-- FIXME: Add better pass criteria. --> </p> </d:passCriteria> </d:SVGTestCase> <title id="test-title">$RCSfile: filters-turb-201.svg,v $</title> <defs> <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> <font-face-src> <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> </font-face-src> </font-face> </defs> <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="12"> <defs> <filter id="t1" x="0" y="0" width="1" height="1"> <feTurbulence baseFrequency="0.15" /> </filter> <filter id="t2" x="0" y="0" width="1" height="1"> <feTurbulence baseFrequency="0.15" type="fractalNoise"/> </filter> <filter id="t3" x="0" y="0" width="1" height="1"> <feTurbulence baseFrequency="0.15" type="turbulence"/> </filter> </defs> <text x="240" y="70" font-size="24" text-anchor="middle">feTurbulence type attribute</text> <g transform="translate(80 120)"> <g transform="translate(0 0)"> <rect width="100" height="100" filter="url(#t1)"/> <text x="50" y="120" text-anchor="middle">lacuna value</text> </g> <g transform="translate(100 0)"> <rect width="100" height="100" filter="url(#t2)"/> <text x="50" y="120" text-anchor="middle">fractalNoise</text> </g> <g transform="translate(200 0)"> <rect width="100" height="100" filter="url(#t3)"/> <text x="50" y="120" text-anchor="middle">turbulence</text> </g> </g> </g> <g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.1 $</text> </g> <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> <!-- comment out this watermark once the test is approved --> <g id="draft-watermark"> <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> </g> </svg>
Received on Friday, 7 January 2011 13:06:41 UTC