blob: 7c07fd67263116682631d89a5bb20a4a0d61e285 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--======================================================================-->
<!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, Institut National de Recherche en =-->
<!--= Informatique et en Automatique, Keio University). All Rights =-->
<!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
<!--======================================================================-->
<!-- =====================================================================-->
<!-- -->
<!-- struct-cond-03-t.svg -->
<!-- -->
<!-- Author : Vincent Hardy, 16-Oct-2003 --><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="tiny" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360">
<SVGTestCase xmlns:testcase="http://www.w3.org/2000/02/svg/testsuite/description/" xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" owner="VH" reviewer="CN" desc="Tests the switch element with requiredFeature" status="accepted" version="$Revision: 1.9 $" testname="$RCSfile: struct-cond-03-t.svg,v $">
<OperatorScript>
<Paragraph>
Tests the &lt;switch&gt; element with requiredFeature.
</Paragraph>
<Paragraph>
Because SVG Tiny does not support DOM, an SVG Tiny implementation
which does not support other SVG Profiles should show a green
rectangle. If the application supports the DOM, meaning that
it does more than just SVG Tiny, it should show a red rectangle.
</Paragraph>
<Paragraph>
On the bottom half of the test, there is another switch.
The first child has a requiredFeature set to
http://www.w3.org/TR/SVG11/feature#BasicText which all
SVG Tiny implementations should support. If the application
does, another green rectangle is displayed. Otherwise,
a red rectangle shows.
</Paragraph>
</OperatorScript>
</SVGTestCase>
<title id="test-title">struct-cond-03-t.svg</title>
<desc id="test-desc">Tests proper handling of &lt;switch&gt; element
with requiredFeature attribute.</desc>
<!--======================================================================-->
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content">
<switch>
<g requiredFeatures="http://www.w3.org/TR/SVG11/feature#SVGDOM">
<rect x="30" y="20" width="420" height="130" fill="#F00"/>
<text x="240" y="100" font-size="20" text-anchor="middle">This viewer does more than SVG Tiny</text>
</g>
<g>
<rect x="30" y="20" width="420" height="130" fill="#0F0"/>
</g>
</switch>
<switch transform="translate(0, 140)">
<g requiredFeatures="http://www.w3.org/TR/SVG11/feature#BasicText">
<rect x="30" y="20" width="420" height="130" fill="#0F0"/>
</g>
<g>
<rect x="30" y="20" width="420" height="130" fill="#F00"/>
<text x="240" y="100" font-size="20" text-anchor="middle">This is not an SVG Tiny Viewer</text>
</g>
</switch>
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.9 $</text>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
</svg>