| 1 |
<svg version="1.1" baseProfile="tiny" 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="CN" author="SH" status="accepted" |
| 15 |
version="$Revision: 1.6 $" testname="$RCSfile: animate-elem-32-t.svg,v $"> |
| 16 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/animate.html#Animation"> |
| 17 |
<p> |
| 18 |
Tests the animation to and from the degenerate cases of the basic shapes. |
| 19 |
The shapes are drawn within the black rectangles. |
| 20 |
</p> |
| 21 |
</d:testDescription> |
| 22 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 23 |
<p>Run the test. No interaction required.</p> |
| 24 |
</d:operatorScript> |
| 25 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 26 |
<p>The test passes if within each of the 11 rectangles an animated shape |
| 27 |
is shown over the first six seconds and that after the six seconds, at the |
| 28 |
end of the animation, each of these rectangles is empty.</p> |
| 29 |
</d:passCriteria> |
| 30 |
</d:SVGTestCase> |
| 31 |
<title id="test-title">$RCSfile: animate-elem-32-t.svg,v $</title> |
| 32 |
<defs> |
| 33 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 34 |
<font-face-src> |
| 35 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 36 |
</font-face-src> |
| 37 |
</font-face> |
| 38 |
</defs> |
| 39 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 40 |
<!-- ====================================================================== --> |
| 41 |
<!-- Draw the boxes to contain the shapes and the text labels for the boxes --> |
| 42 |
<!-- ====================================================================== --> |
| 43 |
<g fill="black" stroke="none" font-family="Arial" font-size="8"> |
| 44 |
<text x="5" y="90">Stroked</text> |
| 45 |
<text x="5" y="195">Unstroked</text> |
| 46 |
<text x="50" y="135">Zero width rect</text> |
| 47 |
<text x="130" y="135">Zero height rect</text> |
| 48 |
<text x="210" y="135">Zero radius circle</text> |
| 49 |
<text x="315" y="135">Zero x radius ellipse</text> |
| 50 |
<text x="394" y="135">Zero y radius ellipse</text> |
| 51 |
<text x="210" y="290">Zero length line</text> |
| 52 |
</g> |
| 53 |
|
| 54 |
<g fill="none" stroke="#000000"> |
| 55 |
<!-- rects --> |
| 56 |
<rect x="50" y="50" width="35" height="60"/> |
| 57 |
<rect x="50" y="155" width="35" height="60"/> |
| 58 |
<rect x="130" y="50" width="35" height="60"/> |
| 59 |
<rect x="130" y="155" width="35" height="60"/> |
| 60 |
|
| 61 |
<!-- circles --> |
| 62 |
<rect x="210" y="50" width="60" height="60"/> |
| 63 |
<rect x="210" y="155" width="60" height="60"/> |
| 64 |
|
| 65 |
<!-- ellipses --> |
| 66 |
<rect x="315" y="50" width="35" height="60"/> |
| 67 |
<rect x="315" y="155" width="35" height="60"/> |
| 68 |
<rect x="394" y="50" width="35" height="60"/> |
| 69 |
<rect x="394" y="155" width="35" height="60"/> |
| 70 |
|
| 71 |
<!-- line --> |
| 72 |
<rect x="210" y="260" width="60" height="10"/> |
| 73 |
</g> |
| 74 |
|
| 75 |
<!-- ====================================================================== --> |
| 76 |
<!-- Draw 4 rectangles, two with zero width, two with zero height --> |
| 77 |
<!-- (stroked and unstroked) --> |
| 78 |
<!-- ====================================================================== --> |
| 79 |
<rect id="Zero-width-stroked-rect" fill="#00FF00" stroke="#000000" x="55" y="55" height="50" width="0"> |
| 80 |
<animate attributeName="width" from="0" to="25" begin="0" dur="3" fill="freeze"/> |
| 81 |
<animate attributeName="width" from="25" to="0" begin="3" dur="3" fill="freeze"/> |
| 82 |
</rect> |
| 83 |
<rect id="Zero-height-stroked-rect" fill="#00FF00" stroke="#000000" x="135" y="55" width="25" height="0"> |
| 84 |
<animate attributeName="height" from="0" to="50" begin="0" dur="3" fill="freeze"/> |
| 85 |
<animate attributeName="height" from="50" to="0" begin="3" dur="3" fill="freeze"/> |
| 86 |
</rect> |
| 87 |
<rect id="Zero-width-unstroked-rect" fill="#FF8000" stroke="none" x="55" y="160" height="50" width="0"> |
| 88 |
<animate attributeName="width" from="0" to="25" begin="0" dur="3" fill="freeze"/> |
| 89 |
<animate attributeName="width" from="25" to="0" begin="3" dur="3" fill="freeze"/> |
| 90 |
</rect> |
| 91 |
<rect id="Zero-height-unstroked-rect" fill="#FF8000" stroke="none" x="135" y="160" width="25" height="0"> |
| 92 |
<animate attributeName="height" from="0" to="50" begin="0" dur="3" fill="freeze"/> |
| 93 |
<animate attributeName="height" from="50" to="0" begin="3" dur="3" fill="freeze"/> |
| 94 |
</rect> |
| 95 |
<!-- ====================================================================== --> |
| 96 |
<!-- Draw two zero radius circles (stroked and unstroked) --> |
| 97 |
<!-- ====================================================================== --> |
| 98 |
<circle id="Zero-radius-stroked-circle" fill="#00FF00" stroke="#000000" cx="240" cy="80" r="0"> |
| 99 |
<animate attributeName="r" from="0" to="25" begin="0" dur="3" fill="freeze"/> |
| 100 |
<animate attributeName="r" from="25" to="0" begin="3" dur="3" fill="freeze"/> |
| 101 |
</circle> |
| 102 |
<circle id="Zero-radius-unstroked-circle" fill="#FF8000" stroke="none" cx="240" cy="185" r="0"> |
| 103 |
<animate attributeName="r" from="0" to="25" begin="0" dur="3" fill="freeze"/> |
| 104 |
<animate attributeName="r" from="25" to="0" begin="3" dur="3" fill="freeze"/> |
| 105 |
</circle> |
| 106 |
<!-- ====================================================================== --> |
| 107 |
<!-- Draw 4 ellipses, two with a zero x radius, two with a zero y radius --> |
| 108 |
<!-- (stroked and unstroked) --> |
| 109 |
<!-- ====================================================================== --> |
| 110 |
<ellipse id="Zero-x-radius-stroked-ellipse" fill="#00FF00" stroke="#0000FF" cx="332" cy="80" rx="0" ry="25"> |
| 111 |
<animate attributeName="rx" from="0" to="12" begin="0" dur="3" fill="freeze"/> |
| 112 |
<animate attributeName="rx" from="12" to="0" begin="3" dur="3" fill="freeze"/> |
| 113 |
</ellipse> |
| 114 |
<ellipse id="Zero-x-radius-unstroked-ellipse" fill="#FF8000" stroke="none" cx="332" cy="185" rx="0" ry="25"> |
| 115 |
<animate attributeName="rx" from="0" to="12" begin="0" dur="3" fill="freeze"/> |
| 116 |
<animate attributeName="rx" from="12" to="0" begin="3" dur="3" fill="freeze"/> |
| 117 |
</ellipse> |
| 118 |
<ellipse id="Zero-y-radius-stroked-ellipse" fill="#00FF00" stroke="#0000FF" cx="411" cy="80" rx="12" ry="0"> |
| 119 |
<animate attributeName="ry" from="0" to="25" begin="0" dur="3" fill="freeze"/> |
| 120 |
<animate attributeName="ry" from="25" to="0" begin="3" dur="3" fill="freeze"/> |
| 121 |
</ellipse> |
| 122 |
<ellipse id="Zero-y-radius-unstroked-ellipse" fill="#FF8000" stroke="none" cx="411" cy="185" rx="12" ry="0"> |
| 123 |
<animate attributeName="ry" from="0" to="25" begin="0" dur="3" fill="freeze"/> |
| 124 |
<animate attributeName="ry" from="25" to="0" begin="3" dur="3" fill="freeze"/> |
| 125 |
</ellipse> |
| 126 |
<!-- ====================================================================== --> |
| 127 |
<!-- Draw a zero-length line --> |
| 128 |
<!-- ====================================================================== --> |
| 129 |
<line id="Zero-length-line" stroke="#0000FF" x1="240" y1="265" x2="240" y2="265"> |
| 130 |
<animate attributeName="x1" from="240" to="215" begin="0" dur="3" fill="freeze"/> |
| 131 |
<animate attributeName="x2" from="240" to="265" begin="0" dur="3" fill="freeze"/> |
| 132 |
<animate attributeName="x1" from="215" to="240" begin="3" dur="3" fill="freeze"/> |
| 133 |
<animate attributeName="x2" from="265" to="240" begin="3" dur="3" fill="freeze"/> |
| 134 |
</line> |
| 135 |
</g> |
| 136 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 137 |
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text> |
| 138 |
</g> |
| 139 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 140 |
<!-- comment out this watermark once the test is approved --> |
| 141 |
<!--<g id="draft-watermark"> |
| 142 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 143 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 144 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 145 |
</g>--> |
| 146 |
</svg> |