Debian Codegraph @

test_non_regression/fail/na/animation/animate-elem-68-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-68-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 repeatCount 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 repeatCount
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 repeatCount 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 repeatCount set to 5. Consequently, its only interval is
36 (0s &lt;= t &lt; 5s (1s*5)).
37 </p>
38 <p>
39 On the third row, the &lt;set&gt; animation has its dur attribute set to
40 10s and its repeatCount set to 0.5. Consequently, its only interval is
41 (0s &lt;= t &lt; 5s (10s*0.5))
42 </p>
43 <p>
44 On the fourth row, the &lt;set&gt; animation has its dur attribute set to
45 1s and its repeatCount 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 </d:testDescription>
50 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
51 <p>Run the test and observe it for at least six seconds. No interaction required.</p>
52 </d:operatorScript>
53 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
54 <p>The test passes if for the first five seconds after the document loads,
55 the red squares in each row are in the right column, and after the five seconds,
56 they all move to the left column.</p>
57 </d:passCriteria>
58 </d:SVGTestCase>
59 <title id="test-title">$RCSfile: animate-elem-68-t.svg,v $</title>
60 <defs>
61 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
62 <font-face-src>
63 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
64 </font-face-src>
65 </font-face>
66 </defs>
67 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
68 <text text-anchor="middle" x="240" y="30" font-size="20">repeatCount</text>
69 <g transform="translate(130, 80)">
70 <g transform="translate(120,45)" text-anchor="end" font-size="14">
71 <text>dur=5s repeatCount unspecified</text>
72 <text y="25">dur=1s repeatCount=5</text>
73 <text y="50">dur=10s repeatCount=0.5</text>
74 <text y="75">dur=1s repeatCount=indefinite</text>
75 <text y="90">end=5s</text>
76 </g>
77
78 <g id="timeMarkersText" transform="translate(180, 25)" text-anchor="middle" font-size="14">
79 <text>&gt; 5s</text>
80 <text x="80">0s-5s</text>
81 </g>
82 <g transform="translate(180,40)" stroke="black">
83 <defs>
84 <rect id="shadow" x="-6" y="-6" width="12" height="12" fill="#ccc" stroke="black" stroke-width="1"/>
85 </defs>
86
87 <g id="setOne">
88 <use xlink:href="#shadow" x="0"/>
89 <use xlink:href="#shadow" x="80"/>
90
91 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
92 <set id="firstSet" attributeName="x" to="74" dur="5s"/>
93 </rect>
94
95 </g>
96
97 <g id="setTwo" transform="translate(0, 25)">
98 <use xlink:href="#shadow" x="0"/>
99 <use xlink:href="#shadow" x="80"/>
100
101 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
102 <set attributeName="x" to="74" dur="1s" repeatCount="5"/>
103 </rect>
104
105 </g>
106
107 <g id="setThree" transform="translate(0, 50)">
108 <use xlink:href="#shadow" x="0"/>
109 <use xlink:href="#shadow" x="80"/>
110
111 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
112 <set attributeName="x" to="74" dur="10s" repeatCount="0.5"/>
113 </rect>
114 </g>
115
116 <g id="setFour" transform="translate(0, 75)">
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="1s" end="5s" repeatCount="indefinite"/>
122 </rect>
123 </g>
124 </g>
125 </g>
126 </g>
127 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
128 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
129 </g>
130 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
131 <!-- comment out this watermark once the test is approved -->
132 <!--<g id="draft-watermark">
133 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
134 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
135 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
136 </g>-->
137 </svg>