| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> |
| 3 |
<!--======================================================================--> |
| 4 |
<!--= Copyright 2002 World Wide Web Consortium, (Massachusetts =--> |
| 5 |
<!--= Institute of Technology, Institut National de Recherche en =--> |
| 6 |
<!--= Informatique et en Automatique, Keio University). All Rights =--> |
| 7 |
<!--= Reserved. See http://www.w3.org/Consortium/Legal/. =--> |
| 8 |
<!--======================================================================--> |
| 9 |
<!-- ===================================================================== --> |
| 10 |
<!-- --> |
| 11 |
<!-- paths-data-02-f.svg --> |
| 12 |
<!-- 1.1 revision by Christophe Jolif --> |
| 13 |
<!-- --> |
| 14 |
<!-- Test that the viewer has the basic capability to handle the 'path' --> |
| 15 |
<!-- element and its data (d) attribute in combination with the quadratic --> |
| 16 |
<!-- Bezier curveto commands, Q, q, T, t (plus Mm and Zz). --> |
| 17 |
<!-- --> |
| 18 |
<!-- Author : Lofton Henderson, 29-Feb-2000 (based on work --> |
| 19 |
<!-- of Mark Sgarlato, Adobe). --> |
| 20 |
<!-- --> |
| 21 |
<!-- History: --> |
| 22 |
<!-- 29-Feb-2000, LRH, Ser#1 created. --> |
| 23 |
<!-- 12-Mar-2000, LH, fix test-framing rect; ser#2 --> |
| 24 |
<!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . --> |
| 25 |
<!-- 17-Aug-2000, JF=" fix duplicate ID bug" ser#3. --> |
| 26 |
<!-- 15-Nov-2000, LH: add missing test-body-content group. --> |
| 27 |
<!-- --> |
| 28 |
<!-- ===================================================================== --> |
| 29 |
<!--======================================================================--> |
| 30 |
<!--= Note. After October 2000, revision history is kept as CVS 'commit' =--> |
| 31 |
<!--= log messages, and therefore is no longer in the preceding preamble.=--> |
| 32 |
<!--======================================================================--> |
| 33 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="480" height="360"> |
| 34 |
<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/"> |
| 35 |
<OperatorScript> |
| 36 |
<Paragraph> |
| 37 |
Test that the viewer has the basic capability to handle the 'path' |
| 38 |
element and its data (d) attribute in combination with the quadratic |
| 39 |
Bezier curveto commands, Q, q, T, t (plus Mm and Zz). |
| 40 |
</Paragraph> |
| 41 |
<Paragraph> |
| 42 |
There are 7 subtests, each composed from the quadric Bezier path commands per |
| 43 |
the label by the subtest. On-curve control points (i.e., the curve position) |
| 44 |
are marked by small colored squares. Subtests are filled, or stroked, or |
| 45 |
both, using simple style properties and colors. |
| 46 |
</Paragraph> |
| 47 |
<Paragraph> |
| 48 |
The rendered picture should match the reference image exactly, except for possible |
| 49 |
variations in the labelling text (per CSS2 rules). |
| 50 |
</Paragraph> |
| 51 |
<Paragraph> |
| 52 |
The test uses the 'rect' element, as well as basic fill (solid primary colors), |
| 53 |
stroke (primary color wide and 1-pixel lines), font-family (Helvetica) and font-size properties. |
| 54 |
</Paragraph> |
| 55 |
</OperatorScript> |
| 56 |
</SVGTestCase> |
| 57 |
<title id="test-title">paths-data-02-f</title> |
| 58 |
<desc id="test-desc">Test that the viewer has the basic capability to handle the 'path' element and data (d) attribute in combination with the quadratic Bezier curveto commands, both regular and shorthand/smooth forms - Q, q, T, t (along with Mm and Zz).</desc> |
| 59 |
<!--======================================================================--> |
| 60 |
<!--Content of Test Case follows... =====================--> |
| 61 |
<!--======================================================================--> |
| 62 |
<g id="test-body-content"> |
| 63 |
<text font-family="Helvetica" font-size="12" x="120" y="14">Quadric bezier curves drawn with commands:</text> |
| 64 |
<!-- ====================================================================== --> |
| 65 |
<!-- Quad Bezier with sub-path using M, Q, M, q, & z ====================== --> |
| 66 |
<!-- ====================================================================== --> |
| 67 |
<path id="Bez_MQMqz" fill="none" stroke="#0000FF" stroke-width="3" d="M 15 20 Q 30 120 130 30 M 180 80 q -75 -100 -163 -60z"/> |
| 68 |
<text font-family="Helvetica" font-size="12" x="80" y="86">M, Q, M, q, z</text> |
| 69 |
<rect x="13" y="18" width="4" height="4" fill="#00C000" stroke="none"/> |
| 70 |
<rect x="128" y="28" width="4" height="4" fill="#00C000" stroke="none"/> |
| 71 |
<rect x="178" y="78" width="4" height="4" fill="#00C000" stroke="none"/> |
| 72 |
<rect x="15" y="18" width="4" height="4" fill="#00C000" stroke="none"/> |
| 73 |
<!-- ====================================================================== --> |
| 74 |
<!-- Quad Bezier with sub-path using m, q, z, m, q, & z =================== --> |
| 75 |
<!-- ====================================================================== --> |
| 76 |
<path id="Bez_fill_MQzmqz" fill="#FFFF00" stroke="#CF0000" d="M372 130Q272 50 422 10zm70 0q50-150-80-90z"/> |
| 77 |
<text font-family="Helvetica" font-size="12" x="352" y="150">m, q, z, m, q, z</text> |
| 78 |
<rect x="370" y="128" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 79 |
<rect x="420" y="8" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 80 |
<rect x="440" y="128" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 81 |
<rect x="360" y="38" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 82 |
<!-- ====================================================================== --> |
| 83 |
<!-- Simple Bezier using M, Q, & Z ======================================== --> |
| 84 |
<!-- ====================================================================== --> |
| 85 |
<path id="Bez_stroke_MQz" fill="none" stroke="#00FFFF" d="M224 103Q234 -12 304 33Z"/> |
| 86 |
<text font-family="Helvetica" font-size="12" x="192" y="36">M, Q, Z</text> |
| 87 |
<rect x="222" y="101" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 88 |
<rect x="302" y="31" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 89 |
<!-- ====================================================================== --> |
| 90 |
<!-- Tri Bezier using M, Q, T, Q, & z ===================================== --> |
| 91 |
<!-- ====================================================================== --> |
| 92 |
<path id="Tri_MQTQz" fill="#00C000" stroke="#000000" d="M208 168Q258 268 308 168T258 118Q128 88 208 168z"/> |
| 93 |
<text font-family="Helvetica" font-size="12" x="308" y="188">M, Q, T, Q, z</text> |
| 94 |
<rect x="206" y="166" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 95 |
<rect x="306" y="166" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 96 |
<rect x="256" y="116" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 97 |
<rect x="206" y="206" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 98 |
<!-- ====================================================================== --> |
| 99 |
<!-- Double Bezier using M, Q, Q, & z ===================================== --> |
| 100 |
<!-- ====================================================================== --> |
| 101 |
<path id="Inv_V_MCcZ" fill="#CF0000" stroke="none" d=" M 60 100 Q -40 150 60 200 Q 160 150 60 100 z "/> |
| 102 |
<text font-family="Helvetica" font-size="12" x="80" y="200">M, Q, Q, z</text> |
| 103 |
<rect x="58" y="98" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 104 |
<rect x="58" y="198" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 105 |
<rect x="58" y="98" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 106 |
<!-- ====================================================================== --> |
| 107 |
<!-- Sin Wave using M, q, t, t, t, t, & z ================================ --> |
| 108 |
<!-- ====================================================================== --> |
| 109 |
<path id="Sin_Mqttttz" fill="none" stroke="#FF0000" d="M240 296q25-100 47 0t47 0t47 0t47 0t47 0z"/> |
| 110 |
<text font-family="Helvetica" font-size="12" x="380" y="236">M, q, t, t, t, t, z</text> |
| 111 |
<rect x="238" y="294" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 112 |
<rect x="285" y="294" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 113 |
<rect x="332" y="294" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 114 |
<rect x="379" y="294" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 115 |
<rect x="426" y="294" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 116 |
<rect x="473" y="294" width="4" height="4" fill="#0000FF" stroke="none"/> |
| 117 |
<!-- ====================================================================== --> |
| 118 |
<!-- Double Spade using M, q, Q, q, Q, & z ================================ --> |
| 119 |
<!-- ====================================================================== --> |
| 120 |
<path id="Dbl_spd_MCcZ" fill="#0000C0" stroke="#00CF00" stroke-width="2" d="M172 193q-100 50 0 50Q72 243 172 293q100 -50 0 -50Q272 243 172 193z"/> |
| 121 |
<text font-family="Helvetica" font-size="12" x="48" y="280">M, q, Q, q, Q, z</text> |
| 122 |
<rect x="170" y="191" width="4" height="4" fill="#FF0000" stroke="none"/> |
| 123 |
<rect x="170" y="241" width="4" height="4" fill="#FF0000" stroke="none"/> |
| 124 |
<rect x="170" y="291" width="4" height="4" fill="#FF0000" stroke="none"/> |
| 125 |
<rect x="170" y="241" width="4" height="4" fill="#FF0000" stroke="none"/> |
| 126 |
<rect x="170" y="191" width="4" height="4" fill="#FF0000" stroke="none"/> |
| 127 |
</g> |
| 128 |
<!--======================================================================--> |
| 129 |
<!--Legend and frame: Title, suite and SVG document serialization====--> |
| 130 |
<!--======================================================================--> |
| 131 |
<g id="test-legend" fill="black" font-family="Helvetica" font-size="10"> |
| 132 |
<rect x="10" y="300" width="275" height="50" fill="none" stroke="#000000"/> |
| 133 |
<path fill="none" stroke="#000000" d="M10 315 h275 M205 315 v35 M10 336 h195 M205 332 h80"/> |
| 134 |
<text x="25" y="311">Scalable Vector Graphics (SVG) v1.1 Conformance Suite</text> |
| 135 |
<a xlink:href="copyright-documents-19990405.html"> |
| 136 |
<text x="12" y="347" fill="blue">Copyright 2002 W3C. All Rights Reserved.</text> |
| 137 |
</a> |
| 138 |
<text font-size="12" x="35" y="330">paths-data-02-f</text> |
| 139 |
<text font-size="10" x="210" y="327">$Revision: 1.1 $</text> |
| 140 |
<text font-size="10" x="210" y="345">Release 1.0</text> |
| 141 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 142 |
</g> |
| 143 |
</svg> |