Debian Codegraph @

test_non_regression/svg/shapes-polyline-01-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=" Lofton" status="accepted"
15 version="$Revision: 1.5 $" testname="$RCSfile: shapes-polyline-01-t.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/shapes.html#PolylineElement">
17 <p>
18 Tests the polyline element.
19 </p>
20 </d:testDescription>
21 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
22 <p>
23 Run the test. No interaction required.
24 </p>
25 </d:operatorScript>
26 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
27 <p>
28 The test is passed if polylines are displayed whose position, size, fill and stroke matches the reference image.
29 </p>
30 </d:passCriteria>
31 </d:SVGTestCase>
32 <title id="test-title">$RCSfile: shapes-polyline-01-t.svg,v $</title>
33 <defs>
34 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
35 <font-face-src>
36 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
37 </font-face-src>
38 </font-face>
39 </defs>
40 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
41 <!-- Test case label. -->
42 <!-- ====================================================================== -->
43 <!-- First two polylines. -->
44 <!-- ====================================================================== -->
45 <!-- Open sawtooth line. -->
46 <polyline id="polyline-01" fill="none" stroke="#000000" points="10,50,35,150,60,50,85,150,110,50,135,150"/>
47 <!-- text font-family="Arial" font-size="12" x="52" y="40">stroked</text-->
48 <!-- Closed pentagon shaped polyline (5 segments). -->
49 <polyline id="polyline-02" fill="none" stroke="blue" stroke-width="8" points="220,50,267,84,249,140,190,140,172,84,220,50"/>
50 <!--text font-family="Arial" font-size="12" x="202" y="40">stroked</text-->
51 <!-- ====================================================================== -->
52 <!-- Third polyline. -->
53 <!-- ====================================================================== -->
54 <!-- The sawtooth again, polylines can be filled. -->
55 <polyline id="polyline-03" fill="blue" stroke="#00FF00" stroke-width="4" points="310,50,335,150,360,50,385,150,410,50,435,150"/>
56 <!--text font-family="Arial" font-size="12" x="340" y="40">filled &amp; stroked</text-->
57 <!-- ====================================================================== -->
58 <!-- Fourth and fifth polylines. -->
59 <!-- ====================================================================== -->
60 <!-- An unclosed "septagon" shaped polyline (7th segment omitted). -->
61 <polyline id="polyline-04" fill="none" stroke="green" stroke-width="8" points="59,185,98,203,108,245,82,279,39,280,11,247,19,205"/>
62 <!--text font-family="Arial" font-size="12" x="36" y="175">stroked</text-->
63 <!-- Same shape, filled, shows difference with 'polygon'. -->
64 <polyline id="polyline-05" fill="#00FF00" stroke="#0000FF" stroke-width="8" points="189,185,228,203,238,245,212,279,169,280,141,247,149,205"/>
65 <!--text font-family="Arial" font-size="12" x="148" y="175">filled &amp; stroked</text-->
66 <!-- ====================================================================== -->
67 <!-- Sixth polylines, irregular with both concave and convex angles. -->
68 <!-- ====================================================================== -->
69 <polyline id="polyline-06" fill="#FF00FF" stroke="none" stroke-width="8" points="270,225 300,245 320,225 340,245 280,280 390,280 420,240 280,185"/>
70 <!--text font-family="Arial" font-size="12" x="330" y="175">filled</text-->
71 </g>
72 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
73 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.5 $</text>
74 </g>
75 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
76 <!-- comment out this watermark once the test is approved -->
77 <!--<g id="draft-watermark">
78 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
79 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
80 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
81 </g>-->
82 </svg>