| 1 |
<svg id="svg-root" width="100%" height="100%" |
| 2 |
viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" |
| 3 |
xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 4 |
<!--======================================================================--> |
| 5 |
<!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =--> |
| 6 |
<!--= Institute of Technology, European Research Consortium for =--> |
| 7 |
<!--= Informatics and Mathematics (ERCIM), Keio University). =--> |
| 8 |
<!--= All Rights Reserved. =--> |
| 9 |
<!--= See http://www.w3.org/Consortium/Legal/. =--> |
| 10 |
<!--======================================================================--> |
| 11 |
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" |
| 12 |
template-version="1.4" reviewer="ED" author="Microsoft" status="accepted" |
| 13 |
version="$Revision: 1.3 $" testname="$RCSfile: shapes-intro-02-f.svg,v $"> |
| 14 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/shapes.html#Introduction"> |
| 15 |
<p> |
| 16 |
Test that basic shape elements are equivalent to a 'path' element that constructs the same shape. |
| 17 |
</p> |
| 18 |
<p> |
| 19 |
For each basic shape, a 'path' reference element that is red is created. |
| 20 |
A basic shape is then placed on top of the 'path' element. |
| 21 |
For each basic shape there's also a reverse test that uses the shape as a reference for the 'path' element. |
| 22 |
</p> |
| 23 |
</d:testDescription> |
| 24 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 25 |
<p> |
| 26 |
Run the test. No interaction required. |
| 27 |
</p> |
| 28 |
</d:operatorScript> |
| 29 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 30 |
<p> |
| 31 |
The test is passed if there is no red visible on the page. |
| 32 |
</p> |
| 33 |
</d:passCriteria> |
| 34 |
</d:SVGTestCase> |
| 35 |
<title id="test-title">$RCSfile: shapes-intro-02-f.svg,v $</title> |
| 36 |
<defs> |
| 37 |
<font-face |
| 38 |
font-family="SVGFreeSansASCII" |
| 39 |
unicode-range="U+0-7F"> |
| 40 |
<font-face-src> |
| 41 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 42 |
</font-face-src> |
| 43 |
</font-face> |
| 44 |
</defs> |
| 45 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 46 |
|
| 47 |
<path d="M35 25 L115 25 A 10 20 0 0 1 125 45 L 125 105 A 10 20 0 0 1 115 125 L 35 125 A 10 20 0 0 1 25 105 L 25 45 A 10 20 0 0 1 35 25" fill="red" /> |
| 48 |
<rect x="25" y="25" rx="10" ry="20" width="100" height="100" fill="black" /> |
| 49 |
<rect x="130" y="25" rx="10" ry="20" width="100" height="100" fill="red" /> |
| 50 |
<path d="M140 25 L220 25 A 10 20 0 0 1 230 45 L 230 105 A 10 20 0 0 1 220 125 L 140 125 A 10 20 0 0 1 130 105 L 130 45 A 10 20 0 0 1 140 25" fill="black" /> |
| 51 |
|
| 52 |
<path d="M300 125 A50 50 0 1 0 299.9999 125" fill="red" /> |
| 53 |
<circle cx="300" cy="75" r="50" fill="black" /> |
| 54 |
<circle cx="401" cy="75" r="50" fill="red" /> |
| 55 |
<path d="M401 125 A50 50 0 1 0 400.9999 125" fill="black" /> |
| 56 |
|
| 57 |
<path d="M60 305 A50 80 0 1 0 59.9999 305 Z" fill="red" /> |
| 58 |
<ellipse cx="60" cy="225" rx="50" ry="80" fill="black" /> |
| 59 |
<ellipse cx="161" cy="225" rx="50" ry="80" fill="red" /> |
| 60 |
<path d="M161 305 A50 80 0 1 0 160.9999 305 Z" fill="black" /> |
| 61 |
|
| 62 |
<path d="M220 150 L270 200 L220 250 Z" fill="red" /> |
| 63 |
<polygon points="220,150 270,200 220,250" fill="black" /> |
| 64 |
<polygon points="270,150 320,200 270,250" fill="red" /> |
| 65 |
<path d="M270 150 L320 200 L270 250 Z" fill="black" /> |
| 66 |
|
| 67 |
<path d="M350 250 L350 350 L400 350 L400 250 L450 250 L450 350" fill="none" stroke="red" stroke-width="10" /> |
| 68 |
<polyline fill="none" stroke="black" stroke-width="10" points="350,250 350,350 400,350 400,250 450,250 450,350" /> |
| 69 |
<polyline fill="none" stroke="red" stroke-width="10" points="350,135 350,235 400,235 400,135 450,135 450,235" /> |
| 70 |
<path d="M350 135 L350 235 L400 235 L400 135 L450 135 L450 235" fill="none" stroke="black" stroke-width="10" /> |
| 71 |
|
| 72 |
<path d="M225 275 L325 275" stroke-width="10" stroke="red" /> |
| 73 |
<line x1="225" y1="275" x2="325" y2="275" stroke-width="10" stroke="black" /> |
| 74 |
<line x1="225" y1="325" x2="325" y2="325" stroke-width="10" stroke="red" /> |
| 75 |
<path d="M225 325 L325 325" stroke-width="10" stroke="black" /> |
| 76 |
|
| 77 |
</g> |
| 78 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 79 |
<text id="revision" x="10" y="340" stroke="none" |
| 80 |
fill="black">$Revision: 1.3 $</text> |
| 81 |
</g> |
| 82 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> |
| 83 |
<!-- comment out this watermark once the test is approved |
| 84 |
<g id="draft-watermark"> |
| 85 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 86 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 87 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 88 |
</g> --> |
| 89 |
</svg> |