| 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.5 $" testname="$RCSfile: shapes-intro-01-t.svg,v $"> |
| 16 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/shapes.html#Introduction"> |
| 17 |
<p> |
| 18 |
Tests the degenerate cases of the basic shapes. The shapes are positioned |
| 19 |
within the black rectangles. |
| 20 |
</p> |
| 21 |
</d:testDescription> |
| 22 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 23 |
<p>Run the test. No interaction required.</p> |
| 24 |
</d:operatorScript> |
| 25 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 26 |
<p>The test passes if the 11 rectangles are empty.</p> |
| 27 |
</d:passCriteria> |
| 28 |
</d:SVGTestCase> |
| 29 |
<title id="test-title">$RCSfile: shapes-intro-01-t.svg,v $</title> |
| 30 |
<defs> |
| 31 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 32 |
<font-face-src> |
| 33 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 34 |
</font-face-src> |
| 35 |
</font-face> |
| 36 |
</defs> |
| 37 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 38 |
<!-- ====================================================================== --> |
| 39 |
<!-- Draw the boxes to contain the shapes and the text labels for the boxes --> |
| 40 |
<!-- ====================================================================== --> |
| 41 |
<g fill="none" stroke="#000000"> |
| 42 |
<!-- rects --> |
| 43 |
<rect x="50" y="50" width="35" height="60"/> |
| 44 |
<rect x="50" y="155" width="35" height="60"/> |
| 45 |
<rect x="130" y="50" width="35" height="60"/> |
| 46 |
<rect x="130" y="155" width="35" height="60"/> |
| 47 |
|
| 48 |
<!-- circles --> |
| 49 |
<rect x="210" y="50" width="60" height="60"/> |
| 50 |
<rect x="210" y="155" width="60" height="60"/> |
| 51 |
|
| 52 |
<!-- ellipses --> |
| 53 |
<rect x="315" y="50" width="35" height="60"/> |
| 54 |
<rect x="315" y="155" width="35" height="60"/> |
| 55 |
<rect x="394" y="50" width="35" height="60"/> |
| 56 |
<rect x="394" y="155" width="35" height="60"/> |
| 57 |
|
| 58 |
<!-- line --> |
| 59 |
<rect x="235" y="260" width="10" height="10"/> |
| 60 |
</g> |
| 61 |
|
| 62 |
<g font-family="Arial" font-size="8"> |
| 63 |
<text x="5" y="90">Stroked</text> |
| 64 |
<text x="5" y="195">Unstroked</text> |
| 65 |
<text x="50" y="135">Zero width rect</text> |
| 66 |
<text x="130" y="135">Zero height rect</text> |
| 67 |
<text x="210" y="135">Zero radius circle</text> |
| 68 |
<text x="315" y="135">Zero x radius ellipse</text> |
| 69 |
<text x="394" y="135">Zero y radius ellipse</text> |
| 70 |
<text x="235" y="290">Zero length line</text> |
| 71 |
</g> |
| 72 |
<!-- ====================================================================== --> |
| 73 |
<!-- Draw 4 rectangles, two with zero width, two with zero height --> |
| 74 |
<!-- (stroked and unstroked) --> |
| 75 |
<!-- ====================================================================== --> |
| 76 |
<rect id="Zero-width-stroked-rect" fill="none" stroke="#000000" x="55" y="55" width="0" height="50"/> |
| 77 |
<rect id="Zero-width-unstroked-rect" fill="#FF0000" stroke="none" x="55" y="160" width="0" height="50"/> |
| 78 |
<rect id="Zero-height-stroked-rect" fill="#00FF00" stroke="#0000FF" x="135" y="55" width="25" height="0"/> |
| 79 |
<rect id="Zero-height-rect" fill="#00FF00" stroke="none" x="135" y="160" width="25" height="0"/> |
| 80 |
<!-- ====================================================================== --> |
| 81 |
<!-- Draw two zero radius circles (stroked and unstroked) --> |
| 82 |
<!-- ====================================================================== --> |
| 83 |
<circle id="Zero-radius-stroked-circle" fill="none" stroke="#000000" cx="240" cy="80" r="0"/> |
| 84 |
<circle id="Zero-radius-unstroked-circle" fill="#FF0000" stroke="none" cx="240" cy="185" r="0"/> |
| 85 |
<!-- ====================================================================== --> |
| 86 |
<!-- Draw 4 ellipses, two with a zero x radius, two with a zero y radius --> |
| 87 |
<!-- (stroked and unstroked) --> |
| 88 |
<!-- ====================================================================== --> |
| 89 |
<ellipse id="Zero-x-radius-stroked-ellipse" fill="#00FF00" stroke="#0000FF" cx="332" cy="80" rx="0" ry="25"/> |
| 90 |
<ellipse id="Zero-x-radius-unstroked-ellipse" fill="#00FF00" stroke="none" cx="332" cy="185" rx="0" ry="25"/> |
| 91 |
<ellipse id="Zero-y-radius-stroked-ellipse" fill="none" stroke="#000000" cx="411" cy="80" rx="12" ry="0"/> |
| 92 |
<ellipse id="Zero-y-radius-unstroked-ellipse" fill="#FF0000" stroke="none" cx="411" cy="185" rx="12" ry="0"/> |
| 93 |
<!-- ====================================================================== --> |
| 94 |
<!-- Draw a zero-length line --> |
| 95 |
<!-- ====================================================================== --> |
| 96 |
<line id="Zero-length-line" stroke="#0000FF" x1="240" y1="265" x2="240" y2="265"/> |
| 97 |
</g> |
| 98 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 99 |
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.5 $</text> |
| 100 |
</g> |
| 101 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 102 |
<!-- comment out this watermark once the test is approved --> |
| 103 |
<!--<g id="draft-watermark"> |
| 104 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 105 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 106 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 107 |
</g>--> |
| 108 |
</svg> |