| 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 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" |
| 14 |
template-version="1.4" reviewer="SVGWGh" author="Tim Thompson" status="accepted" |
| 15 |
version="$Revision: 1.5 $" testname="$RCSfile: struct-cond-01-t.svg,v $"> |
| 16 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/struct.html#ConditionalProcessing"> |
| 17 |
<p> |
| 18 |
This test evaluates a switch statement. |
| 19 |
</p> |
| 20 |
<p> |
| 21 |
The test uses the 'rect' element, as well as basic fill (solid primary colors), |
| 22 |
stroke (black 1-pixel lines), font-family (Arial) and font-size properties. |
| 23 |
</p> |
| 24 |
</d:testDescription> |
| 25 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 26 |
<p> |
| 27 |
Run the test. No interaction required. |
| 28 |
</p> |
| 29 |
</d:operatorScript> |
| 30 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 31 |
<p> |
| 32 |
The result should be a green rectangle in the lower left quarter of the output window. |
| 33 |
</p> |
| 34 |
</d:passCriteria> |
| 35 |
</d:SVGTestCase> |
| 36 |
<title id="test-title">$RCSfile: struct-cond-01-t.svg,v $</title> |
| 37 |
<defs> |
| 38 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 39 |
<font-face-src> |
| 40 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 41 |
</font-face-src> |
| 42 |
</font-face> |
| 43 |
</defs> |
| 44 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 45 |
<switch> |
| 46 |
<rect fill="red" x="0" y="0" width="220" height="150" requiredExtensions="http://example.org/bogus"/> |
| 47 |
<rect fill="green" x="0" y="150" width="220" height="150"/> |
| 48 |
<rect fill="blue" x="240" y="0" width="220" height="150"/> |
| 49 |
</switch> |
| 50 |
</g> |
| 51 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 52 |
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.5 $</text> |
| 53 |
</g> |
| 54 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
</svg> |