| 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="CL" author="Jon Ferraiolo" status="accepted" |
| 15 |
version="$Revision: 1.8 $" testname="$RCSfile: animate-elem-24-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 |
Test which verifies that the basic facilities of declarative |
| 19 |
animation are working. |
| 20 |
</p> |
| 21 |
<p> |
| 22 |
This test uses the following elements : 'animateMotion' and |
| 23 |
'animateTransform' |
| 24 |
</p> |
| 25 |
<p> |
| 26 |
The test is a nine second animation with no repeats. It shows |
| 27 |
the text string "It's alive" moving, rotating and growing from |
| 28 |
time 3s to 9s. |
| 29 |
</p> |
| 30 |
</d:testDescription> |
| 31 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 32 |
<p> |
| 33 |
Run the test. No interaction required. |
| 34 |
</p> |
| 35 |
</d:operatorScript> |
| 36 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 37 |
<p> |
| 38 |
The file includes various guides that can be used to verify the |
| 39 |
correctness of the animation. Pale blue guides exist for |
| 40 |
the text size, location and orientation at times 3s, 6s and 9s. |
| 41 |
</p> |
| 42 |
<p> |
| 43 |
The test is passed if the animated text covers the pale blue guides at |
| 44 |
the indicated times on the test. |
| 45 |
</p> |
| 46 |
</d:passCriteria> |
| 47 |
</d:SVGTestCase> |
| 48 |
<title id="test-title">$RCSfile: animate-elem-24-t.svg,v $</title> |
| 49 |
<defs> |
| 50 |
<font id="MyFont" horiz-adv-x="416"> |
| 51 |
<font-face font-family="MyFont" units-per-em="1000" panose-1="2 0 0 6 3 0 0 2 0 4" ascent="700" descent="-127" alphabetic="0"/> |
| 52 |
<missing-glyph horiz-adv-x="233"/> |
| 53 |
<glyph unicode=" " glyph-name="space" horiz-adv-x="233"/> |
| 54 |
<glyph unicode="I" glyph-name="I" horiz-adv-x="330" d="M30 700V550H90V150H30V0H300V150H240V550H300V700H30Z"/> |
| 55 |
<glyph unicode="t" glyph-name="t" horiz-adv-x="417" d="M5 550V410H137V0H280V410H412V550H5Z"/> |
| 56 |
<glyph unicode="s" glyph-name="s" horiz-adv-x="468" d="M34 550V410V218H291V120H34V0H434V338H177V430H434V550H34Z"/> |
| 57 |
<glyph unicode="'" glyph-name="quotesingle" horiz-adv-x="198" d="M35 700L73 483H125L163 700H35Z"/> |
| 58 |
<glyph unicode="a" glyph-name="a" horiz-adv-x="435" d="M71 550L3 0H143L154 119H282L293 0H433L365 550H71ZM168 259L182 410H254L268 259H168Z"/> |
| 59 |
<glyph unicode="l" glyph-name="l" horiz-adv-x="435" d="M37 0H425V130H180V550H37V410V0Z"/> |
| 60 |
<glyph unicode="i" glyph-name="i" horiz-adv-x="217" d="M37 550V410V0H180V550H37Z"/> |
| 61 |
<glyph unicode="v" glyph-name="v" horiz-adv-x="430" d="M73 0H357L430 550H282L235 140H195L148 550H0L19 410L73 0Z"/> |
| 62 |
<glyph unicode="e" glyph-name="e" horiz-adv-x="442" d="M37 550V410V0H419V130H180V210H299V340H180V420H419V550H37Z"/> |
| 63 |
<glyph unicode="!" glyph-name="exclam" horiz-adv-x="237" d="M46 145V0H191V145H46ZM58 220H179L194 700H43L58 220Z"/> |
| 64 |
</font> |
| 65 |
</defs> |
| 66 |
<defs> |
| 67 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 68 |
<font-face-src> |
| 69 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 70 |
</font-face-src> |
| 71 |
</font-face> |
| 72 |
<font id="MyFont" horiz-adv-x="416"> |
| 73 |
<font-face font-family="MyFont" units-per-em="1000" panose-1="2 0 0 6 3 0 0 2 0 4" ascent="700" descent="-127" alphabetic="0"/> |
| 74 |
<missing-glyph horiz-adv-x="233"/> |
| 75 |
<glyph unicode=" " glyph-name="space" horiz-adv-x="233"/> |
| 76 |
<glyph unicode="I" glyph-name="I" horiz-adv-x="330" d="M30 700V550H90V150H30V0H300V150H240V550H300V700H30Z"/> |
| 77 |
<glyph unicode="t" glyph-name="t" horiz-adv-x="417" d="M5 550V410H137V0H280V410H412V550H5Z"/> |
| 78 |
<glyph unicode="s" glyph-name="s" horiz-adv-x="468" d="M34 550V410V218H291V120H34V0H434V338H177V430H434V550H34Z"/> |
| 79 |
<glyph unicode="'" glyph-name="quotesingle" horiz-adv-x="198" d="M35 700L73 483H125L163 700H35Z"/> |
| 80 |
<glyph unicode="a" glyph-name="a" horiz-adv-x="435" d="M71 550L3 0H143L154 119H282L293 0H433L365 550H71ZM168 259L182 410H254L268 259H168Z"/> |
| 81 |
<glyph unicode="l" glyph-name="l" horiz-adv-x="435" d="M37 0H425V130H180V550H37V410V0Z"/> |
| 82 |
<glyph unicode="i" glyph-name="i" horiz-adv-x="217" d="M37 550V410V0H180V550H37Z"/> |
| 83 |
<glyph unicode="v" glyph-name="v" horiz-adv-x="430" d="M73 0H357L430 550H282L235 140H195L148 550H0L19 410L73 0Z"/> |
| 84 |
<glyph unicode="e" glyph-name="e" horiz-adv-x="442" d="M37 550V410V0H419V130H180V210H299V340H180V420H419V550H37Z"/> |
| 85 |
<glyph unicode="!" glyph-name="exclam" horiz-adv-x="237" d="M46 145V0H191V145H46ZM58 220H179L194 700H43L58 220Z"/> |
| 86 |
</font> |
| 87 |
</defs> |
| 88 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 89 |
<g font-size="20"> |
| 90 |
<text x="70" y="110">Text from 0s to 3s</text> |
| 91 |
<text x="100" y="185">Text at 6s</text> |
| 92 |
<text x="100" y="220">Text at 9s</text> |
| 93 |
</g> |
| 94 |
<!-- Guide objects to show where the animation elements belong at which time --> |
| 95 |
<g font-family="MyFont" stroke="none" fill="#bee"> |
| 96 |
<text transform="translate(50,90) rotate(-30)" font-size="20">It's alive!</text> |
| 97 |
<text transform="translate(75,180) rotate(-15)" font-size="40">It's alive!</text> |
| 98 |
<text x="100" y="270" font-size="60">It's alive!</text> |
| 99 |
</g> |
| 100 |
<!-- Set up a new user coordinate system so that the text string's |
| 101 |
origin is at (0,0), allowing rotation and scale relative to |
| 102 |
the new origin |
| 103 |
--> |
| 104 |
<g transform="translate(50,90)"> |
| 105 |
<!-- The following illustrates the use of the 'animateMotion', |
| 106 |
and 'animateTransform' elements. At 3 seconds, the text: |
| 107 |
* continuously moves diagonally across the viewport |
| 108 |
* rotates from -30 to zero degrees |
| 109 |
* scales by a factor of three. |
| 110 |
--> |
| 111 |
<text id="TextElement" x="0" y="0" font-family="MyFont" font-size="20" fill="#36e" transform="rotate(-30)"> |
| 112 |
It's alive! |
| 113 |
<animateMotion path="M 0 0 L 50 180" begin="3s" dur="6s" fill="freeze"/> |
| 114 |
<animateTransform attributeName="transform" attributeType="XML" type="rotate" from="-30" to="0" begin="3s" dur="6s" fill="freeze"/> |
| 115 |
<animateTransform attributeName="transform" attributeType="XML" type="scale" from="1" to="3" additive="sum" begin="3s" dur="6s" fill="freeze"/> |
| 116 |
</text> |
| 117 |
</g> |
| 118 |
</g> |
| 119 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 120 |
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.8 $</text> |
| 121 |
</g> |
| 122 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 123 |
<!-- comment out this watermark once the test is approved --> |
| 124 |
<!--<g id="draft-watermark"> |
| 125 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 126 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 127 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 128 |
</g>--> |
| 129 |
</svg> |