Debian Codegraph @

test_non_regression/fail/na/animation/animate-elem-07-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.7 $" testname="$RCSfile: animate-elem-07-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 different ways of defining a motion path.
19 </p>
20 <p>
21 An animation moves a triangle along a path. Reference rectangles, lines and text
22 are provided to help show what the correct behavior is.
23 </p>
24 <p>
25 This animation uses the 'mpath' sub-element to define the motion path.
26 </p>
27 </d:testDescription>
28 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
29 <p>
30 Run the test. No interaction required.
31 </p>
32 </d:operatorScript>
33 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
34 <p>
35 The test is passed if the triangle is animated along the black curve over the course of 6 seconds.
36 </p>
37 </d:passCriteria>
38 </d:SVGTestCase>
39 <title id="test-title">$RCSfile: animate-elem-07-t.svg,v $</title>
40 <defs>
41 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
42 <font-face-src>
43 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
44 </font-face-src>
45 </font-face>
46 </defs>
47 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
48 <g font-size="36">
49 <text x="48" y="48">Test a motion path</text>
50 <text x="48" y="95">'mpath' element.</text>
51 <path id="mpathRef" d="M90,258 C90,258 216,120 390,198" fill="none" stroke="black" stroke-width="6"/>
52 <rect x="60" y="198" width="60" height="60" fill="#FFCCCC" stroke="black" stroke-width="6"/>
53 <text x="90" y="300" text-anchor="middle">0 sec.</text>
54 <rect x="360" y="138" width="60" height="60" fill="#FFCCCC" stroke="black" stroke-width="6"/>
55 <text x="390" y="240" text-anchor="middle">6+ sec.</text>
56 <path d="M-30,0 L0,-60 L30,0 z" fill="blue" stroke="green" stroke-width="6">
57 <animateMotion begin="0s" dur="6s" calcMode="linear" fill="freeze">
58 <mpath xlink:href="#mpathRef"/>
59 </animateMotion>
60 </path>
61 </g>
62 </g>
63 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
64 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text>
65 </g>
66 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
67 <!-- comment out this watermark once the test is approved -->
68 <!--<g id="draft-watermark">
69 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
70 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
71 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
72 </g>-->
73 </svg>