| 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="SH" status="accepted" |
| 15 |
version="$Revision: 1.6 $" testname="$RCSfile: paths-data-08-t.svg,v $"> |
| 16 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/paths.html#PathData"> |
| 17 |
<p> |
| 18 |
Verify the basic capability to handle the 'path' element, and its data attribute (d) |
| 19 |
in combination with the straight-line path commands. |
| 20 |
Two pairs of concentric equilateral triangles are drawn using |
| 21 |
M and Z. No L commands are used in this test as they are implied after |
| 22 |
an M or Z command. The shapes are identical, with one stroked and |
| 23 |
one filled. The fill-mode default of "even-odd" means that |
| 24 |
the inner triangle is hollow. |
| 25 |
</p> |
| 26 |
</d:testDescription> |
| 27 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 28 |
<p> |
| 29 |
Run the test. No interaction required. |
| 30 |
</p> |
| 31 |
</d:operatorScript> |
| 32 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 33 |
<p> |
| 34 |
The rendered picture should match the reference image exactly |
| 35 |
</p> |
| 36 |
</d:passCriteria> |
| 37 |
</d:SVGTestCase> |
| 38 |
<title id="test-title">$RCSfile: paths-data-08-t.svg,v $</title> |
| 39 |
<defs> |
| 40 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 41 |
<font-face-src> |
| 42 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 43 |
</font-face-src> |
| 44 |
</font-face> |
| 45 |
</defs> |
| 46 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 47 |
<!-- ====================================================================== --> |
| 48 |
<!-- First Group of Triangles using M & Z commands ======================== --> |
| 49 |
<!-- ====================================================================== --> |
| 50 |
<text font-size="24" x="75" y="34">Lines drawn with commands:</text> |
| 51 |
<text font-size="24" x="180" y="64">M and Z</text> |
| 52 |
|
| 53 |
<g transform="scale(1.8)"> |
| 54 |
<path id="Triangle_stroke_MZ" fill="none" stroke="#000000" d=" M 62.00000 56.00000 113.96152 146.00000 10.03848 146.00000 62.00000 56.00000 Z M 62.00000 71.00000 100.97114 138.50000 23.02886 138.50000 62.00000 71.00000 Z "/> |
| 55 |
<rect x="60.00000" y="54.00000" width="4" height="4" fill="#00C000" stroke="none"/> |
| 56 |
<rect x="111.96152" y="144.00000" width="4" height="4" fill="#00C000" stroke="none"/> |
| 57 |
<rect x="8.03848" y="144.00000" width="4" height="4" fill="#00C000" stroke="none"/> |
| 58 |
<rect x="60.00000" y="69.00000" width="4" height="4" fill="#00C000" stroke="none"/> |
| 59 |
<rect x="98.97114" y="136.50000" width="4" height="4" fill="#00C000" stroke="none"/> |
| 60 |
<rect x="21.02886" y="136.50000" width="4" height="4" fill="#00C000" stroke="none"/> |
| 61 |
<text font-size="12" x="42" y="162">stroked</text> |
| 62 |
<path id="Triangle_fill_MZ" fill="#05D" stroke="none" fill-rule="evenodd" d=" M 177.00000 56.00000 228.96152 146.00000 125.03848 146.00000 177.00000 56.00000 Z M 177.00000 71.00000 215.97114 138.50000 138.02886 138.50000 177.00000 71.00000 Z "/> |
| 63 |
<rect x="175.00000" y="54.00000" width="4" height="4" fill="#00C000" stroke="none"/> |
| 64 |
<rect x="226.96152" y="144.00000" width="4" height="4" fill="#00C000" stroke="none"/> |
| 65 |
<rect x="123.03848" y="144.00000" width="4" height="4" fill="#00C000" stroke="none"/> |
| 66 |
<rect x="175.00000" y="69.00000" width="4" height="4" fill="#00C000" stroke="none"/> |
| 67 |
<rect x="213.97114" y="136.50000" width="4" height="4" fill="#00C000" stroke="none"/> |
| 68 |
<rect x="136.02886" y="136.50000" width="4" height="4" fill="#00C000" stroke="none"/> |
| 69 |
<text font-size="12" x="162" y="162">filled</text> |
| 70 |
</g> |
| 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.6 $</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> |