| 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="ED" author="CM" status="accepted" |
| 15 |
version="$Revision: 1.7 $" testname="$RCSfile: animate-elem-92-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 |
This tests checks the behavior of discrete to-animations. |
| 19 |
</p> |
| 20 |
</d:testDescription> |
| 21 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 22 |
<p>Run the test. No interaction required.</p> |
| 23 |
</d:operatorScript> |
| 24 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 25 |
<p>The test passes if after five seconds, in each of the three rows, |
| 26 |
the red rectangle is in the column at the times indicated. |
| 27 |
Thus, from the document load until 2s afterwards, the red |
| 28 |
square in all three rows must be in the left column. At 2s, |
| 29 |
all three red squares must move to the right column. At 4s, |
| 30 |
the red square in the first row must move to the left column |
| 31 |
and the other two red squares must remain in the right column.</p> |
| 32 |
</d:passCriteria> |
| 33 |
</d:SVGTestCase> |
| 34 |
<title id="test-title">$RCSfile: animate-elem-92-t.svg,v $</title> |
| 35 |
<defs> |
| 36 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 37 |
<font-face-src> |
| 38 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 39 |
</font-face-src> |
| 40 |
</font-face> |
| 41 |
</defs> |
| 42 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 43 |
<text text-anchor="middle" x="240" y="30" font-size="20">discrete to-animation</text> |
| 44 |
<g transform="translate(100, 70)"> |
| 45 |
<g transform="translate(80,25)" text-anchor="end" font-size="14"> |
| 46 |
<text>without freezing</text> |
| 47 |
<text y="55">with freezing</text> |
| 48 |
<text y="110">with keyTimes</text> |
| 49 |
</g> |
| 50 |
|
| 51 |
<g id="timeMarkersText" transform="translate(150, 5)" text-anchor="middle" font-size="14"> |
| 52 |
<text>0s-2s</text> |
| 53 |
<text y="-16">> 4s</text> |
| 54 |
<text x="80">2s-4s</text> |
| 55 |
|
| 56 |
<g transform="translate(0, 55)"> |
| 57 |
<text>0s-2s</text> |
| 58 |
<text x="80">> 2s</text> |
| 59 |
</g> |
| 60 |
|
| 61 |
<g transform="translate(0, 110)"> |
| 62 |
<text>0s-2s</text> |
| 63 |
<text x="80">> 2s</text> |
| 64 |
</g> |
| 65 |
</g> |
| 66 |
|
| 67 |
<g transform="translate(150,20)" stroke="black"> |
| 68 |
<defs> |
| 69 |
<rect id="shadow" x="-6" y="-6" width="12" height="12" fill="#ccc" stroke="black" stroke-width="1"/> |
| 70 |
</defs> |
| 71 |
|
| 72 |
<g> |
| 73 |
<use xlink:href="#shadow" x="0"/> |
| 74 |
<use xlink:href="#shadow" x="80"/> |
| 75 |
|
| 76 |
<rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)"> |
| 77 |
<animate attributeName="x" calcMode="discrete" to="74" dur="4s"/> |
| 78 |
</rect> |
| 79 |
</g> |
| 80 |
|
| 81 |
<g transform="translate(0, 55)"> |
| 82 |
<use xlink:href="#shadow" x="0"/> |
| 83 |
<use xlink:href="#shadow" x="80"/> |
| 84 |
|
| 85 |
<rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)"> |
| 86 |
<animate attributeName="x" calcMode="discrete" to="74" dur="4s" fill="freeze"/> |
| 87 |
</rect> |
| 88 |
</g> |
| 89 |
|
| 90 |
<g transform="translate(0, 110)"> |
| 91 |
<use xlink:href="#shadow" x="0"/> |
| 92 |
<use xlink:href="#shadow" x="80"/> |
| 93 |
|
| 94 |
<rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)"> |
| 95 |
<animate attributeName="x" calcMode="discrete" to="74" dur="8s" keyTimes="0; 0.25" fill="freeze"/> |
| 96 |
</rect> |
| 97 |
</g> |
| 98 |
</g> |
| 99 |
</g> |
| 100 |
</g> |
| 101 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 102 |
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text> |
| 103 |
</g> |
| 104 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> |
| 105 |
<!-- comment out this watermark once the test is approved --> |
| 106 |
<!-- |
| 107 |
<g id="draft-watermark"> |
| 108 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 109 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 110 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 111 |
</g> |
| 112 |
--> |
| 113 |
</svg> |