tests/arthur/data/1.1/coords-trans-02-t.svg
changeset 0 1918ee327afb
child 7 f7bc934e204c
equal deleted inserted replaced
-1:000000000000 0:1918ee327afb
       
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
       
     3 
       
     4 <!--======================================================================-->
       
     5 <!--=  Copyright 2000 World Wide Web Consortium, (Massachusetts          =-->
       
     6 <!--=  Institute of Technology, Institut National de Recherche en        =-->
       
     7 <!--=  Informatique et en Automatique, Keio University). All Rights      =-->
       
     8 <!--=  Reserved. See http://www.w3.org/Consortium/Legal/.                =-->
       
     9 <!--======================================================================-->
       
    10 <!-- ===================================================================== -->
       
    11 <!--                                                                       -->
       
    12 <!-- coords-transforms-BE-02.svg                                           -->
       
    13 <!-- Author : Vincent Hardy                                                -->
       
    14 <!-- renamed for 1.1 suite to coords-trans-02-t.svg                        -->
       
    15 <!-- Modified for svg 1.1 by Ola Andersson, 07-Mar-2002                    -->
       
    16 <!--                                                                       -->
       
    17 <!-- History:                                                              -->
       
    18 <!--  24-Feb-2000, VH:  created                                            -->
       
    19 <!--  27-Feb-2000, LH:  minor adjustments to TC name, ser#3.               -->
       
    20 <!--  02-Mar-2000, LH:  fix names, legend,  ser#4.                         -->
       
    21 <!--  09-Mar-2000, LH:  fix framing rect,  ser#5.                          -->
       
    22 <!--  30-Apr-2000, VH="  fix stroke properties bug" ser#5.                 -->
       
    23 <!--  12-May-2000, LH:  rmv text-anchor and integrate,  ser#6.             -->
       
    24 <!--  03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# .        -->
       
    25 <!--  16-Aug-2000, LH="rename" ser#7.                                      -->
       
    26 <!-- Renamed again by Lee Klosterman to coords-trans-01-t-b.svg   28/06/02 -->
       
    27 <!--                                                                       -->
       
    28 <!-- ===================================================================== -->
       
    29 <!--======================================================================-->
       
    30 <!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
       
    31 <!--= log messages, and therefore is no longer in the preceding preamble.=-->
       
    32 <!--======================================================================-->
       
    33 <svg version="1.1" baseProfile="tiny" 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">
       
    34 
       
    35    <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
       
    36 		<OperatorScript version="$Revision: 1.5 $" testname="coords-trans-01-t-b.svg">
       
    37          <Paragraph>
       
    38             This test verifies the implementation of transforms. It tests elementary transforms
       
    39             and transform nesting.
       
    40                            Note that for layout purposes, this test uses nesting of translation with the elementary  transforms.
       
    41          </Paragraph>
       
    42          <Paragraph>
       
    43             The rendered picture should match the reference image exactly except for variations in the labeling text.
       
    44          </Paragraph>
       
    45          <Paragraph>
       
    46             The test uses the rect element, the fill color (solid primary colors) and transforms.
       
    47          </Paragraph>
       
    48       </OperatorScript>
       
    49    </SVGTestCase>
       
    50 
       
    51    <title id="test-title">coords-trans-02-t</title>
       
    52    <desc id="test-desc">Validates elementary transforms and transformation nesting</desc>
       
    53    <!--======================================================================-->
       
    54    <!--Content of Test Case follows...                  =====================-->
       
    55    <!--======================================================================-->
       
    56    <g id="test-body-content" transform="translate(0, 30)">
       
    57       <!-- ====================================================================== -->
       
    58       <!-- First, draw a test grid ============================================== -->
       
    59       <!-- ====================================================================== -->
       
    60       <!--g id="test-grid" stroke="#cccccc" stroke-width="1" >
       
    61          <line x1="10" y1="10.5" x2="470" y2="10.5"/>
       
    62          <line x1="10" y1="20.5" x2="470" y2="20.5"/>
       
    63          <line x1="10" y1="30.5" x2="470" y2="30.5"/>
       
    64          <line x1="10" y1="40.5" x2="470" y2="40.5"/>
       
    65          <line x1="10" y1="50.5" x2="470" y2="50.5"/>
       
    66          <line x1="10" y1="60.5" x2="470" y2="60.5"/>
       
    67          <line x1="10" y1="70.5" x2="470" y2="70.5"/>
       
    68          <line x1="10" y1="80.5" x2="470" y2="80.5"/>
       
    69          <line x1="10" y1="90.5" x2="470" y2="90.5"/>
       
    70          <line x1="10" y1="100.5" x2="470" y2="100.5"/>
       
    71          <line x1="10" y1="110.5" x2="470" y2="110.5"/>
       
    72          <line x1="10" y1="120.5" x2="470" y2="120.5"/>
       
    73          <line x1="10" y1="130.5" x2="470" y2="130.5"/>
       
    74          <line x1="10" y1="140.5" x2="470" y2="140.5"/>
       
    75          <line x1="10" y1="150.5" x2="470" y2="150.5"/>
       
    76          <line x1="10" y1="160.5" x2="470" y2="160.5"/>
       
    77          <line x1="10" y1="170.5" x2="470" y2="170.5"/>
       
    78          <line x1="10" y1="180.5" x2="470" y2="180.5"/>
       
    79          <line x1="10" y1="190.5" x2="470" y2="190.5"/>
       
    80          <line x1="10" y1="200.5" x2="470" y2="200.5"/>
       
    81          <line x1="10" y1="210.5" x2="470" y2="210.5"/>
       
    82          <line x1="10" y1="220.5" x2="470" y2="220.5"/>
       
    83          <line x1="10" y1="230.5" x2="470" y2="230.5"/>
       
    84          <line x1="10" y1="240.5" x2="470" y2="240.5"/>
       
    85          <line x1="10" y1="250.5" x2="470" y2="250.5"/>
       
    86          <line x1="10" y1="260.5" x2="470" y2="260.5"/>
       
    87          <line y1="10" x1="10.5" y2="260.5" x2="10.5"/>
       
    88          <line y1="10" x1="20.5" y2="260.5" x2="20.5"/>
       
    89          <line y1="10" x1="30.5" y2="260.5" x2="30.5"/>
       
    90          <line y1="10" x1="40.5" y2="260.5" x2="40.5"/>
       
    91          <line y1="10" x1="50.5" y2="260.5" x2="50.5"/>
       
    92          <line y1="10" x1="60.5" y2="260.5" x2="60.5"/>
       
    93          <line y1="10" x1="70.5" y2="260.5" x2="70.5"/>
       
    94          <line y1="10" x1="80.5" y2="260.5" x2="80.5"/>
       
    95          <line y1="10" x1="90.5" y2="260.5" x2="90.5"/>
       
    96          <line y1="10" x1="100.5" y2="260.5" x2="100.5"/>
       
    97          <line y1="10" x1="110.5" y2="260.5" x2="110.5"/>
       
    98          <line y1="10" x1="120.5" y2="260.5" x2="120.5"/>
       
    99          <line y1="10" x1="130.5" y2="260.5" x2="130.5"/>
       
   100          <line y1="10" x1="140.5" y2="260.5" x2="140.5"/>
       
   101          <line y1="10" x1="150.5" y2="260.5" x2="150.5"/>
       
   102          <line y1="10" x1="160.5" y2="260.5" x2="160.5"/>
       
   103          <line y1="10" x1="170.5" y2="260.5" x2="170.5"/>
       
   104          <line y1="10" x1="180.5" y2="260.5" x2="180.5"/>
       
   105          <line y1="10" x1="190.5" y2="260.5" x2="190.5"/>
       
   106          <line y1="10" x1="200.5" y2="260.5" x2="200.5"/>
       
   107          <line y1="10" x1="210.5" y2="260.5" x2="210.5"/>
       
   108          <line y1="10" x1="220.5" y2="260.5" x2="220.5"/>
       
   109          <line y1="10" x1="230.5" y2="260.5" x2="230.5"/>
       
   110          <line y1="10" x1="240.5" y2="260.5" x2="240.5"/>
       
   111          <line y1="10" x1="250.5" y2="260.5" x2="250.5"/>
       
   112          <line y1="10" x1="260.5" y2="260.5" x2="260.5"/>
       
   113          <line y1="10" x1="270.5" y2="260.5" x2="270.5"/>
       
   114          <line y1="10" x1="280.5" y2="260.5" x2="280.5"/>
       
   115          <line y1="10" x1="290.5" y2="260.5" x2="290.5"/>
       
   116          <line y1="10" x1="300.5" y2="260.5" x2="300.5"/>
       
   117          <line y1="10" x1="310.5" y2="260.5" x2="310.5"/>
       
   118          <line y1="10" x1="320.5" y2="260.5" x2="320.5"/>
       
   119          <line y1="10" x1="330.5" y2="260.5" x2="330.5"/>
       
   120          <line y1="10" x1="340.5" y2="260.5" x2="340.5"/>
       
   121          <line y1="10" x1="350.5" y2="260.5" x2="350.5"/>
       
   122          <line y1="10" x1="360.5" y2="260.5" x2="360.5"/>
       
   123          <line y1="10" x1="370.5" y2="260.5" x2="370.5"/>
       
   124          <line y1="10" x1="380.5" y2="260.5" x2="380.5"/>
       
   125          <line y1="10" x1="390.5" y2="260.5" x2="390.5"/>
       
   126          <line y1="10" x1="400.5" y2="260.5" x2="400.5"/>
       
   127          <line y1="10" x1="410.5" y2="260.5" x2="410.5"/>
       
   128          <line y1="10" x1="420.5" y2="260.5" x2="420.5"/>
       
   129          <line y1="10" x1="430.5" y2="260.5" x2="430.5"/>
       
   130          <line y1="10" x1="440.5" y2="260.5" x2="440.5"/>
       
   131          <line y1="10" x1="450.5" y2="260.5" x2="450.5"/>
       
   132          <line y1="10" x1="460.5" y2="260.5" x2="460.5"/>
       
   133          <line y1="10" x1="470.5" y2="260.5" x2="470.5"/>
       
   134       </g-->
       
   135       <!-- ====================================================================== -->
       
   136       <!-- Now, test elementary transforms. For each transform, 3 markers are     -->
       
   137       <!-- placed where the user space is expected after transformations for the  -->
       
   138       <!-- origin (black) and the points in (20, 0) (blue) and (0, 20) (red).     -->
       
   139       <!-- Then, a blue line going from (0, 0) to (20, 0) is drawn and a red line -->
       
   140       <!-- going from (0, 0) to (0, 20), after applying the elementary            -->
       
   141       <!-- transformation. If the test succeeds, the red line should join the     -->
       
   142       <!-- black marker to the red marker and the blue line the black marker to   -->
       
   143       <!-- the blue marker.                                                       -->
       
   144       <!-- ====================================================================== -->
       
   145       <g id="elementary-transforms-test" transform="translate(0, 10)">
       
   146          <g id="elementary-transforms" transform="translate(-30, 0) scale(2.5, 2.5)">
       
   147             <!-- Translate -->
       
   148             <g transform="translate(50, 50)">
       
   149                <rect x="0" y="0" width="20" height="2" fill="blue" />
       
   150                <rect x="0" y="0" width="2" height="20" fill="red" />
       
   151             </g>
       
   152             <!-- Rotate -90 deg about (150, 70) -->
       
   153             <g transform="translate(150, 70) rotate(-90)">
       
   154                <rect x="0" y="0" width="20" height="2" fill="blue" />
       
   155                <rect x="0" y="0" width="2" height="20" fill="red" />
       
   156             </g>
       
   157          </g>
       
   158          <!-- elementary-transforms -->
       
   159          <!-- Draw all the markers -->
       
   160          <g id="elementary-transforms-test-markers" transform="translate(-30, 0) scale(2.5, 2.5)">
       
   161             <!-- Translate -->
       
   162             <text x="40" y="40">translate (50, 50)</text>
       
   163             <rect x="48" y="48" width="5" height="5" fill="black" />
       
   164             <rect x="68" y="48" width="5" height="5" fill="blue" />
       
   165             <rect x="48" y="68" width="5" height="5" fill="red" />
       
   166             <!-- Rotate -90 deg about (150, 70) -->
       
   167             <text x="140" y="40">rotate(-90)</text>
       
   168             <rect x="148" y="68" width="5" height="5" fill="black" />
       
   169             <rect x="148" y="48" width="5" height="5" fill="blue" />
       
   170             <rect x="168" y="68" width="5" height="5" fill="red" />
       
   171          </g>
       
   172          <!-- elementary-transforms-test-markers -->
       
   173       </g>
       
   174    </g>
       
   175 	<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.5 $</text>
       
   176 	<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
       
   177 </svg>
       
   178