| 1 |
<svg version="1.1" baseProfile="full" id="svg-root" |
| 2 |
width="100%" height="100%" viewBox="0 0 480 360" |
| 3 |
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 4 |
<!--======================================================================--> |
| 5 |
<!--= SVG 1.1 2nd Edition Test Case =--> |
| 6 |
<!--======================================================================--> |
| 7 |
<!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =--> |
| 8 |
<!--= Institute of Technology, European Research Consortium for =--> |
| 9 |
<!--= Informatics and Mathematics (ERCIM), Keio University). =--> |
| 10 |
<!--= All Rights Reserved. =--> |
| 11 |
<!--= See http://www.w3.org/Consortium/Legal/. =--> |
| 12 |
<!--======================================================================--> |
| 13 |
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" |
| 14 |
template-version="1.4" reviewer="SVGWG" author="Jon Ferraiolo" status="accepted" |
| 15 |
version="$Revision: 1.7 $" testname="$RCSfile: filters-turb-01-f.svg,v $"> |
| 16 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/filters.html#feTurbulenceElement"> |
| 17 |
<p> |
| 18 |
Test which verifies the basic facilities of feTurbulence. Six rectangular areas showing the |
| 19 |
effects of various parameter settings for feTurbulence. The sample image indicates the |
| 20 |
parameter settings to produce the given image. |
| 21 |
</p> |
| 22 |
</d:testDescription> |
| 23 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 24 |
<p> |
| 25 |
Run the test. No interaction required. |
| 26 |
</p> |
| 27 |
</d:operatorScript> |
| 28 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 29 |
<p> |
| 30 |
The rendered picture should match the reference image, except for possible variations |
| 31 |
in the labelling text (per CSS2 rules). |
| 32 |
</p> |
| 33 |
</d:passCriteria> |
| 34 |
</d:SVGTestCase> |
| 35 |
<title id="test-title">$RCSfile: filters-turb-01-f.svg,v $</title> |
| 36 |
<defs> |
| 37 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 38 |
<font-face-src> |
| 39 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 40 |
</font-face-src> |
| 41 |
</font-face> |
| 42 |
</defs> |
| 43 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 44 |
<desc>Six rectangular areas showing the effects of various parameter settings for feTurbulence.</desc> |
| 45 |
<g font-family="Verdana" text-anchor="middle" font-size="10"> |
| 46 |
<defs> |
| 47 |
<filter id="Turb1" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%"> |
| 48 |
<feTurbulence type="turbulence" baseFrequency="0.05" numOctaves="2"/> |
| 49 |
</filter> |
| 50 |
<filter id="Turb2" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%"> |
| 51 |
<feTurbulence type="turbulence" baseFrequency="0.1" numOctaves="2"/> |
| 52 |
</filter> |
| 53 |
<filter id="Turb3" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%"> |
| 54 |
<feTurbulence type="turbulence" baseFrequency="0.05" numOctaves="8"/> |
| 55 |
</filter> |
| 56 |
<filter id="Turb4" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%"> |
| 57 |
<feTurbulence type="fractalNoise" baseFrequency="0.1" numOctaves="4"/> |
| 58 |
</filter> |
| 59 |
<filter id="Turb5" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%"> |
| 60 |
<feTurbulence type="fractalNoise" baseFrequency="0.4" numOctaves="4"/> |
| 61 |
</filter> |
| 62 |
<filter id="Turb6" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%"> |
| 63 |
<feTurbulence type="fractalNoise" baseFrequency="0.1" numOctaves="1"/> |
| 64 |
</filter> |
| 65 |
</defs> |
| 66 |
<rect x="25" y="25" width="100" height="75" filter="url(#Turb1)"/> |
| 67 |
<text x="75" y="117">type=turbulence</text> |
| 68 |
<text x="75" y="129">baseFrequency=0.05</text> |
| 69 |
<text x="75" y="141">numOctaves=2</text> |
| 70 |
<rect x="175" y="25" width="100" height="75" filter="url(#Turb2)"/> |
| 71 |
<text x="225" y="117">type=turbulence</text> |
| 72 |
<text x="225" y="129">baseFrequency=0.1</text> |
| 73 |
<text x="225" y="141">numOctaves=2</text> |
| 74 |
<rect x="325" y="25" width="100" height="75" filter="url(#Turb3)"/> |
| 75 |
<text x="375" y="117">type=turbulence</text> |
| 76 |
<text x="375" y="129">baseFrequency=0.05</text> |
| 77 |
<text x="375" y="141">numOctaves=8</text> |
| 78 |
<rect x="25" y="180" width="100" height="75" filter="url(#Turb4)"/> |
| 79 |
<text x="75" y="272">type=fractalNoise</text> |
| 80 |
<text x="75" y="284">baseFrequency=0.1</text> |
| 81 |
<text x="75" y="296">numOctaves=4</text> |
| 82 |
<rect x="175" y="180" width="100" height="75" filter="url(#Turb5)"/> |
| 83 |
<text x="225" y="272">type=fractalNoise</text> |
| 84 |
<text x="225" y="284">baseFrequency=0.4</text> |
| 85 |
<text x="225" y="296">numOctaves=4</text> |
| 86 |
<rect x="325" y="180" width="100" height="75" filter="url(#Turb6)"/> |
| 87 |
<text x="375" y="272">type=fractalNoise</text> |
| 88 |
<text x="375" y="284">baseFrequency=0.1</text> |
| 89 |
<text x="375" y="296">numOctaves=1</text> |
| 90 |
</g> |
| 91 |
</g> |
| 92 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 93 |
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text> |
| 94 |
</g> |
| 95 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 96 |
<!-- comment out this watermark once the test is approved --> |
| 97 |
<!--<g id="draft-watermark"> |
| 98 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 99 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 100 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 101 |
</g>--> |
| 102 |
</svg> |