| 1 |
<svg version="1.1" baseProfile="tiny" zoomAndPan="magnify" preserveAspectRatio="xMidYMid meet" 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="CL" author="VH" status="accepted" |
| 15 |
version="$Revision: 1.5 $" testname="$RCSfile: struct-frag-06-t.svg,v $"> |
| 16 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/struct.html#NewDocument"> |
| 17 |
<p> |
| 18 |
This test adds testing of some basic XML features SVG User Agents |
| 19 |
should support. |
| 20 |
</p> |
| 21 |
<p> |
| 22 |
First, the test checks support for the default entities amp, lt, gt, apos |
| 23 |
and quot. This is what the first line shows in gray. |
| 24 |
</p> |
| 25 |
<p> |
| 26 |
Second, the test checks support for hexadecimal and decimal character |
| 27 |
entities, as shown in the second line, again in gray |
| 28 |
</p> |
| 29 |
<p> |
| 30 |
Finally, the last line shows usage of an entity defined in the |
| 31 |
document's internal DTD subset. The same geometry (a path) is |
| 32 |
reused twice, once filled in gray and ones stroked in gray. |
| 33 |
</p> |
| 34 |
</d:testDescription> |
| 35 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 36 |
<p>Run the test. No interaction required.</p> |
| 37 |
</d:operatorScript> |
| 38 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 39 |
<p>The test passes if the following conditions are met:</p> |
| 40 |
<ul> |
| 41 |
<li>The text string <span style="background: #ffa; border: 1px solid gray; padding: 0 2px">&, <, >, ', "</span> is shown in gray.</li> |
| 42 |
<li>The text string <span style="background: #ffa; border: 1px solid gray; padding: 0 2px">A hexadecimal (&#x41)= A</span> is shown in gray.</li> |
| 43 |
<li>The text string <span style="background: #ffa; border: 1px solid gray; padding: 0 2px">A decimal (&#65)= A</span> is shown in gray.</li> |
| 44 |
<li>Two octagons are shown: one gray filled, and one gray stroked & unfilled.</li> |
| 45 |
</ul> |
| 46 |
</d:passCriteria> |
| 47 |
</d:SVGTestCase> |
| 48 |
<title id="test-title">$RCSfile: struct-frag-06-t.svg,v $</title> |
| 49 |
<defs> |
| 50 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 51 |
<font-face-src> |
| 52 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 53 |
</font-face-src> |
| 54 |
</font-face> |
| 55 |
</defs> |
| 56 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 57 |
<text x="30" y="30">Default entities: amp, lt, gt, apos, quot: </text> |
| 58 |
<text x="90" y="60" fill="gray">&, <, >, ', "</text> |
| 59 |
<text x="30" y="100">Character references:</text> |
| 60 |
<text x="90" y="130" fill="gray"> A hexadecimal (&#x41)= A</text> |
| 61 |
<text x="90" y="160" fill="gray"> A decimal (&#65)= A</text> |
| 62 |
<text x="30" y="200">Entity references:</text> |
| 63 |
<text x="105" y="228" text-anchor="middle">gray</text> |
| 64 |
<g transform="translate(90, 235) scale(0.2)" fill="gray"> |
| 65 |
<path d="M60,0 l60,0 l60,60 l0,60 l-60,60 l-60,0 l-60,-60 l0,-60 z"/> |
| 66 |
</g> |
| 67 |
<text x="205" y="228" text-anchor="middle">outlined</text> |
| 68 |
<g transform="translate(190, 235) scale(0.2)" fill="none" stroke="gray" stroke-width="5"> |
| 69 |
<path d="M60,0 l60,0 l60,60 l0,60 l-60,60 l-60,0 l-60,-60 l0,-60 z"/> |
| 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.5 $</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> |