| 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 |
<!--======================================================================--> |
| 5 |
<!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =--> |
| 6 |
<!--= Institute of Technology, Institut National de Recherche en =--> |
| 7 |
<!--= Informatique et en Automatique, Keio University). All Rights =--> |
| 8 |
<!--= Reserved. See http://www.w3.org/Consortium/Legal/. =--> |
| 9 |
<!--======================================================================--> |
| 10 |
<!-- ===================================================================== --> |
| 11 |
<!-- --> |
| 12 |
<!-- shapes-ellipse-BE-01.svg --> |
| 13 |
<!-- renamed for 1.1 suite to shapes-ellipse-01-f.svg --> |
| 14 |
<!-- --> |
| 15 |
<!-- Test that viewer has the basic capability to handle the <ellipse> --> |
| 16 |
<!-- element. --> |
| 17 |
<!-- --> |
| 18 |
<!-- Author : Kelvin R. Lawrence, 3-Feb-2000 --> |
| 19 |
<!-- --> |
| 20 |
<!-- History: --> |
| 21 |
<!-- 3-Feb-2000, KRL, Serial#1 created. Matches 20000202 SVG spec. --> |
| 22 |
<!-- 27-Feb-2000, LRH, Serial#2, fix TC name, formatting, create .XML --> |
| 23 |
<!-- 12-Mar-2000, LH, fix test-framing rect; ser#3 --> |
| 24 |
<!-- 04-Jun-2000, LH, fix label in Legend; ser#4 --> |
| 25 |
<!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . --> |
| 26 |
<!-- --> |
| 27 |
<!-- ===================================================================== --> |
| 28 |
<!--======================================================================--> |
| 29 |
<!--= Note. After October 2000, revision history is kept as CVS 'commit' =--> |
| 30 |
<!--= log messages, and therefore is no longer in the preceding preamble.=--> |
| 31 |
<!--======================================================================--> |
| 32 |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="480" height="360"> |
| 33 |
<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" > |
| 34 |
<OperatorScript> |
| 35 |
<Paragraph> |
| 36 |
Verify the basic capability to handle the 'ellipse' |
| 37 |
shape element. Four pairs of ellipses should be displayed in the |
| 38 |
four quadrants, with the shapes in each pair being identical. Filling, stroking, |
| 39 |
and filling-plus-stroking are applied, and the cx,cy (center position) and |
| 40 |
rx,ry (ellipse radii) attributes are varied. |
| 41 |
</Paragraph> |
| 42 |
<Paragraph> |
| 43 |
The rendered picture should match the reference image, except for possible |
| 44 |
variations in the labelling text (per CSS2 rules). |
| 45 |
</Paragraph> |
| 46 |
<Paragraph> |
| 47 |
This test uses 'text', 'rect' and 'path' elements, as well as |
| 48 |
fill (solid primary colors), stroke (primary colors and wide lines), |
| 49 |
font-family ("Helvetica"), and font-size properties within the 'style' attribute. |
| 50 |
</Paragraph> |
| 51 |
</OperatorScript> |
| 52 |
</SVGTestCase> |
| 53 |
|
| 54 |
<title id="test-title">shapes-ellipse-01-f</title> |
| 55 |
<desc id="test-desc">Test that viewer has the basic capability to handle the <ellipse> element.</desc> |
| 56 |
<!--======================================================================--> |
| 57 |
<!--Content of Test Case follows... =====================--> |
| 58 |
<!--======================================================================--> |
| 59 |
<g id="test-body-content"> |
| 60 |
<!-- ====================================================================== --> |
| 61 |
<!-- First pair of ellipses. --> |
| 62 |
<!-- ====================================================================== --> |
| 63 |
<text font-family="Helvetica" font-size="12" x="160" y="14">Basic ellipses</text> |
| 64 |
<text font-family="Helvetica" font-size="12" x="82" y="20">rx=30</text> |
| 65 |
<text font-family="Helvetica" font-size="12" x="82" y="38">ry=50</text> |
| 66 |
<ellipse id="ellipse-01" fill="none" stroke="#000000" cx="50" cy="75" rx="30" ry="50"/> |
| 67 |
<ellipse id="ellipse-02" fill="red" cx="160" cy="75" rx="30" ry="50"/> |
| 68 |
<text font-family="Helvetica" font-size="12" x="32" y="142">stroked</text> |
| 69 |
<text font-family="Helvetica" font-size="12" x="148" y="142">filled</text> |
| 70 |
<!-- ====================================================================== --> |
| 71 |
<!-- Second pair of ellipses, should actually draw circles. --> |
| 72 |
<!-- ====================================================================== --> |
| 73 |
<text font-family="Helvetica" font-size="12" x="298" y="20">rx=35</text> |
| 74 |
<text font-family="Helvetica" font-size="12" x="298" y="38">ry=35</text> |
| 75 |
<ellipse id="ellipse-03" fill="none" stroke="#000000" cx="270" cy="80" rx="35" ry="35"/> |
| 76 |
<ellipse id="ellipse-04" fill="red" cx="370" cy="80" rx="35" ry="35"/> |
| 77 |
<text font-family="Helvetica" font-size="12" x="250" y="142">stroked</text> |
| 78 |
<text font-family="Helvetica" font-size="12" x="358" y="142">filled</text> |
| 79 |
<!-- ====================================================================== --> |
| 80 |
<!-- Third pair of ellipses. --> |
| 81 |
<!-- ====================================================================== --> |
| 82 |
<text font-family="Helvetica" font-size="12" x="82" y="170">rx=30</text> |
| 83 |
<text font-family="Helvetica" font-size="12" x="82" y="186">ry=50</text> |
| 84 |
<ellipse id="ellipse-05" fill="none" stroke="#0000FF" stroke-width="8" cx="50" cy="220" rx="30" ry="50"/> |
| 85 |
<ellipse id="ellipse-06" fill="#00FF00" stroke="#0000FF" stroke-width="8" cx="160" cy="220" rx="30" ry="50"/> |
| 86 |
<text font-family="Helvetica" font-size="12" x="36" y="292">stroked</text> |
| 87 |
<text font-family="Helvetica" font-size="12" x="118" y="292">filled & stroked</text> |
| 88 |
<!-- ====================================================================== --> |
| 89 |
<!-- Fourth pair of ellipses. --> |
| 90 |
<!-- ====================================================================== --> |
| 91 |
<text font-family="Helvetica" font-size="12" x="242" y="170">rx=70</text> |
| 92 |
<text font-family="Helvetica" font-size="12" x="242" y="186">ry=40</text> |
| 93 |
<ellipse id="ellipse-07" fill="#00FF00" stroke="#0000FF" stroke-width="8" cx="330" cy="220" rx="70" ry="40"/> |
| 94 |
<text font-family="Helvetica" font-size="12" x="292" y="292">filled & stroked</text> |
| 95 |
</g> |
| 96 |
<!--======================================================================--> |
| 97 |
<!--Legend and frame: Title, suite and SVG document serialization====--> |
| 98 |
<!--======================================================================--> |
| 99 |
<g id="test-legend" fill="black" font-family="Helvetica" font-size="10" > |
| 100 |
<rect x="10" y="300" width="275" height="50" fill="none" stroke="#000000" /> |
| 101 |
<path fill="none" stroke="#000000" d="M10 315 h275 M205 315 v35 M10 336 h195 M205 332 h80"/> |
| 102 |
<text x="25" y="311">Scalable Vector Graphics (SVG) v1.1 Conformance Suite</text> |
| 103 |
<a xlink:href="copyright-documents-19990405.html"> |
| 104 |
<text x="12" y="347" fill="blue" >Copyright 2002 W3C. All Rights Reserved.</text> |
| 105 |
</a> |
| 106 |
<text font-size="12" x="35" y="330">shapes-ellipse-01-f</text> |
| 107 |
<text font-size="10" x="210" y="327">$Revision: 1.1 $</text> |
| 108 |
<text font-size="10" x="210" y="345">Release 1.0</text> |
| 109 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000" /> |
| 110 |
</g> |
| 111 |
</svg> |