| <?xml version="1.0" encoding="UTF-8"?> |
| <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd"> |
| |
| <!--======================================================================--> |
| <!--= 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/. =--> |
| <!--======================================================================--> |
| <!-- =====================================================================--> |
| <!-- --> |
| <!-- structure-allElem-BE-09.svg --> |
| <!-- renamed to struct-image-02-b.svg --> |
| <!-- --> |
| <!-- Patch file for test case structure-allElem-BE-09... --> |
| <!-- --> |
| <!-- Test all the structure elements of chapter 6 in one test file. --> |
| <!-- --> |
| <!-- Author : Tim Thompson 3/16/00 --> |
| <!-- Revised for 1.1 : Rick Graham Feb/05/2002 --> |
| <!-- --> |
| <!-- History: --> |
| <!-- 20-mar-2000, TGT all element test of structure --> |
| <!-- 21-mar-2000, LH=", comment DOCTYPE for now" fix 'title'; serial#2. --> |
| <!-- 09-apr-2000, LH=" fix linearGradient" serial#3. --> |
| <!-- 06-Jun-2000, TT: used to be BE-12, number changed to 9, switch --> |
| <!-- wrong rectangle, language updated; fix rect in --> |
| <!-- square3(LH) ser#4. --> |
| <!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . --> |
| <!-- 16-Aug-2000, LH="rename" ser#5. --> |
| <!-- 17-Aug-2000, JF: change system-language to systemLanguage, --> |
| <!-- system-required to requiredFeatures, --> |
| <!-- org.w3c.static to org.w3c.svg.static --> |
| <!-- 28-Aug-2000, TT: removed systemLanguage and requiredFeatures from --> |
| <!-- switch, removed language="en" --> |
| <!-- 29-oct-2000, JF: Removed requiredFeatures="org.w3.svg.static" as this--> |
| <!-- would require an implementation to support the --> |
| <!-- the entire language before passing this test. --> |
| <!-- update serial# to 7 --> |
| <!-- 09-oct-2002, BB: removed symbol and linearGradient for Tiny test --> |
| <!-- --> |
| <!-- =====================================================================--> |
| <!--======================================================================--> |
| <!--= Note. After October 2000, revision history is kept as CVS 'commit' =--> |
| <!--= log messages, and therefore is no longer in the preceding preamble.=--> |
| <!--======================================================================--> |
| <svg version="1.1" baseProfile="basic" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360"> |
| <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/"> |
| <!--nav data here--> |
| <OperatorScript version="$Revision: 1.2 $" testname="struct-image-02-b.svg"> |
| <Paragraph> |
| To test the 9 structure elements and their relationships. What you should |
| be seeing is 4 equal sized squares. The upper left (S1) should be an image, |
| the upper right (S2) should be a red square, the lower left (S3) a cyan square |
| and the lower right (S4) a green square. S1 tests the defs element and |
| the rendering of an image via the use element. S2 tests the defs element and |
| the use element by creating an svg element that contains a red rectangle. |
| S3 tests the nesting of an SVG element, a separate graphics element is |
| defined, its coords relative to the svg element. S4 tests a switch statement, |
| If there is not a green rectangle showing in S4 there is probably a problem |
| processing a switch. |
| </Paragraph> |
| <Paragraph> |
| The rendered picture should match the reference image, except for possible |
| variations in the labelling text (per CSS2 rules). |
| </Paragraph> |
| <Paragraph> |
| The test uses the 'rect' element, as well as basic fill (solid primary colors), |
| stroke (black 1-pixel lines), font-family (Arial) and font-size properties. |
| </Paragraph> |
| </OperatorScript> |
| </SVGTestCase> |
| <title id="test-title">struct-image-02-b</title> |
| <desc id="test-desc">The purpose of this test so it test all the structure elements referenced in chapter 6 in one test file</desc> |
| <!--======================================================================--> |
| <!--Content of Test Case follows... =====================--> |
| <!--======================================================================--> |
| <g id="test-body-content"> |
| <defs> |
| <image id="image1" x="0" y="0" width="240" height="150" xlink:href="resources/struct-image-02.jpg"/> |
| <svg version="1.1" baseProfile="basic" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg01" x="240" y="0" width="240" height="225"> |
| <rect width="100%" height="100%" fill="red" /> |
| </svg> |
| </defs> |
| <g id="square1"> |
| <use x="0" y="0" width="240" height="150" xlink:href="#image1"/> |
| </g> |
| <g id="square2"> |
| <use xlink:href="#svg01"/> |
| </g> |
| <svg version="1.1" baseProfile="basic" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="square3" x="0" y="150" width="240" height="150"> |
| <g> |
| <rect fill="aqua" x="0" y="0" width="240" height="150"/> |
| </g> |
| </svg> |
| <g id="square4"> |
| <switch> |
| <rect fill="red" x="240" y="150" width="240" height="150" requiredFeatures="org.w3c.svg.static" systemLanguage=""/> |
| <rect fill="blue" x="240" y="150" width="240" height="150" requiredFeatures="org.w3c.svg.static" systemLanguage=""/> |
| <rect fill="green" x="240" y="150" width="240" height="150" requiredFeatures="org.w3c.svg.static"/> |
| <rect fill="yellow" x="240" y="150" width="240" height="150" requiredFeatures="org.w3c.svg.static" systemLanguage=""/> |
| </switch> |
| </g> |
| </g> |
| <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.2 $</text> |
| <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| </svg> |
| |