Debian Codegraph @

test_non_regression/fail/na/animation/animate-elem-69-t.svg

raw
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="VH" status="accepted"
15 version="$Revision: 1.6 $" testname="$RCSfile: animate-elem-69-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 performs basic tests on the repeatDur attribute.
19 </p>
20 <p>
21 Each row in the test shows different rectangles subject to &lt;set&gt;
22 animations with different configurations with regards to the repeatDur
23 attribute. For each row, the animation should be active
24 during the first 5 seconds of the animations where the red rectangle
25 should show in the right column. At five seconds into the animation,
26 all the rectangles should move to their left position.
27 </p>
28 <p>
29 On the first row, the &lt;set&gt; animation has its dur attribute set to
30 '5s' and its repeatDur unspecified. Consequently, its only interval
31 is (0s &lt;= t &lt; 5s).
32 </p>
33 <p>
34 On the second row, the &lt;set&gt; animation has its dur attribute set to
35 1s and its repeatDur set to 5s. Consequently, its only interval is
36 (0s &lt;= t &lt; 5s).
37 </p>
38 <p>
39 On the third row, the &lt;set&gt; animation has its dur attribute set to
40 0.5s and its repeatDur set to 5s. Consequently, its only interval is
41 (0s &lt;= t &lt; 5s).
42 </p>
43 <p>
44 On the fourth row, the &lt;set&gt; animation has its dur attribute set to
45 1s and its repeatDur set to indefinite. It also has an end attribute
46 set to 5s. Consequently, the repeat duration is indefinite, but the active
47 duration is limited by the end attribute and the active interval is (0s &lt;= t &lt; 5s).
48 </p>
49 <p>
50 On the fifth row, the &lt;set&gt; animation has its dur attribute set to
51 0.7s and its repeatDur set to 5s. Consequently, its only interval is
52 (0s &lt;= t &lt; 5s). The difference with the 3rd row is that there is a fractional
53 number of simple durations in the active duration (7.1428) where there
54 is a whole number of simple durations in the third row (10).
55 </p>
56 </d:testDescription>
57 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
58 <p>Run the test and observe it for at least six seconds. No interaction required.</p>
59 </d:operatorScript>
60 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
61 <p>The test passes if for the first five seconds after the document loads,
62 the red squares in each row are in the right column, and after the five seconds,
63 they all move to the left column.</p>
64 </d:passCriteria>
65 </d:SVGTestCase>
66 <title id="test-title">$RCSfile: animate-elem-69-t.svg,v $</title>
67 <defs>
68 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
69 <font-face-src>
70 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
71 </font-face-src>
72 </font-face>
73 </defs>
74 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
75 <text text-anchor="middle" x="240" y="30" font-size="20">repeatDur</text>
76 <g transform="translate(130, 80)">
77 <g transform="translate(120,45)" text-anchor="end" font-size="14">
78 <text>dur=5s repeatDur unspecified</text>
79 <text y="25">dur=1s repeatDur=5s</text>
80 <text y="50">dur=0.5s repeatDur=5s</text>
81 <text y="75">dur=1s repeatDur=indefinite</text>
82 <text y="90">end=5s</text>
83 <text y="125">dur=0.7s repeatDur=5s</text>
84 </g>
85
86 <g id="timeMarkersText" transform="translate(180, 25)" text-anchor="middle" font-size="14">
87 <text>&gt; 5s</text>
88 <text x="80">0s-5s</text>
89 </g>
90
91 <g transform="translate(180,40)" stroke="black">
92 <defs>
93 <rect id="shadow" x="-6" y="-6" width="12" height="12" fill="#ccc" stroke="black" stroke-width="1"/>
94 </defs>
95
96 <g id="setOne">
97 <use xlink:href="#shadow" x="0"/>
98 <use xlink:href="#shadow" x="80"/>
99
100 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
101 <set id="firstSet" attributeName="x" to="74" dur="5s"/>
102 </rect>
103
104 </g>
105
106 <g id="setTwo" transform="translate(0, 25)">
107 <use xlink:href="#shadow" x="0"/>
108 <use xlink:href="#shadow" x="80"/>
109
110 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
111 <set attributeName="x" to="74" dur="1s" repeatDur="5s"/>
112 </rect>
113
114 </g>
115
116 <g id="setThree" transform="translate(0, 50)">
117 <use xlink:href="#shadow" x="0"/>
118 <use xlink:href="#shadow" x="80"/>
119
120 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
121 <set attributeName="x" to="74" dur="0.5s" repeatDur="5s"/>
122 </rect>
123 </g>
124
125 <g id="setFour" transform="translate(0, 75)">
126 <use xlink:href="#shadow" x="0"/>
127 <use xlink:href="#shadow" x="80"/>
128
129 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
130 <set attributeName="x" to="74" dur="1s" end="5s" repeatDur="indefinite"/>
131 </rect>
132 </g>
133
134 <g id="setFive" transform="translate(0, 125)">
135 <use xlink:href="#shadow" x="0"/>
136 <use xlink:href="#shadow" x="80"/>
137
138 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
139 <set attributeName="x" to="74" dur="0.7s" repeatDur="5s"/>
140 </rect>
141 </g>
142 </g>
143 </g>
144 </g>
145 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
146 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
147 </g>
148 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
149 <!-- comment out this watermark once the test is approved -->
150 <!--<g id="draft-watermark">
151 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
152 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
153 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
154 </g>-->
155 </svg>