Debian Codegraph @

test_non_regression/fail/na/animation/animate-elem-64-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-64-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 dur attribute.
19 </p>
20 <p>
21 The first row shows a red rectangle subject to a &lt;set&gt; animation
22 with no begin attribute, no end attribute and a dur attribute set to
23 '2s'. Therefore, the animation should be active from 0 to 2 seconds and
24 then terminate. Consequently, the rectangle should show on the right
25 for the first two seconds, and then move to the left position.
26 </p>
27 <p>
28 The second row shows a red rectangle subject to a &lt;set&gt; animation
29 with no begin attribute, no end attribute and a dur attribute set to
30 'indefinite'. Therefore, the animation should stay active indefinitely
31 and the rectangle should always be on the right position, never on the
32 left position.
33 </p>
34 <p>
35 Finally, the third row shows red rectangle subject to a &lt;set&gt; animation
36 with no begin attribute, no end attribute and a dur attribute set to
37 'media'. In the context of SVG 1.1, this is equivalent to an 'indefinite'
38 value. Therefore, the animation should stay active indefinitely
39 and the rectangle should always be on the right position, never on the
40 left position.
41 </p>
42 </d:testDescription>
43 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
44 <p>Run the test. No interaction required.</p>
45 </d:operatorScript>
46 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
47 <p>The test passes if after three seconds, in each of the three rows,
48 the red rectangle is in the column at the times indicated.
49 Thus, from the document load until 2s afterwards, the red
50 square in the first row must be in the right column,
51 and after the 2s it must be in the left column. In the
52 other two rows, the red square must remain in the
53 right column.</p>
54 </d:passCriteria>
55 </d:SVGTestCase>
56 <title id="test-title">$RCSfile: animate-elem-64-t.svg,v $</title>
57 <defs>
58 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
59 <font-face-src>
60 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
61 </font-face-src>
62 </font-face>
63 </defs>
64 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
65 <text text-anchor="middle" x="240" y="30" font-size="20">dur</text>
66 <g transform="translate(100, 100)">
67 <g transform="translate(80,25)" text-anchor="end" font-size="14">
68 <text>clock value</text>
69 <text y="65">indefinite</text>
70 <text y="130">media</text>
71 </g>
72
73 <g id="timeMarkersText" transform="translate(150, 5)" text-anchor="middle" font-size="14">
74 <text>&gt; 2s</text>
75 <text x="80">0s-2s</text>
76
77 <g transform="translate(0, 65)">
78 <text>never</text>
79 <text x="80">&gt; 0s</text>
80 </g>
81
82 <g transform="translate(0, 130)">
83 <text>never</text>
84 <text x="80">&gt; 0s</text>
85 </g>
86 </g>
87
88 <g transform="translate(150,20)" stroke="black">
89 <defs>
90 <rect id="shadow" x="-6" y="-6" width="12" height="12" fill="#ccc" stroke="black" stroke-width="1"/>
91 </defs>
92
93 <g id="setOne">
94 <use xlink:href="#shadow" x="0"/>
95 <use xlink:href="#shadow" x="80"/>
96
97 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
98 <set id="firstSet" attributeName="x" to="74" dur="2s"/>
99 </rect>
100 </g>
101
102 <g id="setTwo" transform="translate(0, 65)">
103 <use xlink:href="#shadow" x="0"/>
104 <use xlink:href="#shadow" x="80"/>
105
106 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
107 <set attributeName="x" to="74" dur="indefinite"/>
108 </rect>
109 </g>
110
111 <g id="setThree" transform="translate(0, 130)">
112 <use xlink:href="#shadow" x="0"/>
113 <use xlink:href="#shadow" x="80"/>
114
115 <rect x="-6" y="-6" width="12" height="12" fill="rgb(204,0,102)">
116 <set attributeName="x" to="74" dur="media"/>
117 </rect>
118 </g>
119 </g>
120 </g>
121 </g>
122 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
123 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.6 $</text>
124 </g>
125 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
126 <!-- comment out this watermark once the test is approved -->
127 <!--<g id="draft-watermark">
128 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
129 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
130 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
131 </g>-->
132 </svg>