Debian Codegraph @

test_non_regression/fail/na/animation/animate-elem-08-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="SVGWG" author="Jon Ferraiolo" status="accepted"
15 version="$Revision: 1.9 $" testname="$RCSfile: animate-elem-08-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 rotate='auto' and rotate='auto-reverse'.
19 </p>
20 <p>
21 Two animations have been defined that move a triangle along a path. The first animation specifies rotate='auto', which causes
22 the object to be rotated along the curve of the path. The second animation specifies rotate='auto-reverse', which causes the
23 object to be flipped and then rotated along the curve of the path.
24 </p>
25 </d:testDescription>
26 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
27 <p>
28 Run the test. No interaction required.
29 </p>
30 </d:operatorScript>
31 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
32 <p>
33 The test is passed if:
34 </p>
35 <ul>
36 <li>each of the triangles are animated along the respective black curves over the course of 6 seconds</li>
37 <li>the leftmost triangle points upwards and the rightmost triangle points downwards</li>
38 <li>the triangles are rotated during the animation so that they are always perpendicular to the tangential vector at the current position on the respective curve</li>
39 </ul>
40 </d:passCriteria>
41 </d:SVGTestCase>
42 <title id="test-title">$RCSfile: animate-elem-08-t.svg,v $</title>
43 <defs>
44 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
45 <font-face-src>
46 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
47 </font-face-src>
48 </font-face>
49 </defs>
50 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
51 <text font-size="14" text-anchor="middle" x="225" y="25">Test rotate='auto' and rotate='auto-reverse'</text>
52 <g font-size="12" text-anchor="middle">
53 <path d="M25,225 C25,175 125,150 175,200" fill="none" stroke="black" stroke-width="2"/>
54 <rect x="10" y="195" width="30" height="30" fill="#FFCCCC" stroke="black" stroke-width="4"/>
55 <text x="25" y="240">0 sec.</text>
56 <rect x="160" y="170" width="30" height="30" fill="#FFCCCC" stroke="black" stroke-width="4"/>
57 <text x="175" y="215">6+ sec.</text>
58 <path d="M-15,0 L0,-30 L15,0 z" fill="blue" stroke="green" stroke-width="2">
59 <animateMotion path="M25,225 C25,175 125,150 175,200" rotate="auto" begin="0s" dur="6s" calcMode="linear" fill="freeze"/>
60 </path>
61 <text x="100" y="260" stroke="none" font-size="14">rotate='auto'</text>
62 <path d="M275,225 C275,175 375,150 425,200" fill="none" stroke="black" stroke-width="2"/>
63 <rect x="260" y="195" width="30" height="30" fill="#FFCCCC" stroke="black" stroke-width="4"/>
64 <text x="275" y="240">0 sec.</text>
65 <rect x="410" y="170" width="30" height="30" fill="#FFCCCC" stroke="black" stroke-width="4"/>
66 <text x="425" y="215">6+ sec.</text>
67 <path d="M-15,0 L0,-30 L15,0 z" fill="blue" stroke="green" stroke-width="2">
68 <animateMotion path="M275,225 C275,175 375,150 425,200" rotate="auto-reverse" begin="0s" dur="6s" calcMode="linear" fill="freeze"/>
69 </path>
70 <text x="350" y="260" stroke="none" font-size="14">rotate='auto-reverse'</text>
71 </g>
72 </g>
73 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
74 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.9 $</text>
75 </g>
76 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
77 <!-- comment out this watermark once the test is approved -->
78 <!--<g id="draft-watermark">
79 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
80 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
81 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
82 </g>-->
83 </svg>