tkormann    02/03/20 08:39:39

  Modified:    test-resources/org/apache/batik/test samplesRendering.xml
  Added:       samples/tests/spec/scripting fill.svg visibility.svg
               test-references/samples/tests/spec/scripting fill.png
                        visibility.png
  Log:
  the two new tests
  
  Revision  Changes    Path
  1.1                  xml-batik/samples/tests/spec/scripting/fill.svg
  
  Index: fill.svg
  ===================================================================
  <?xml version="1.0" standalone="no"?>
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
  "http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd";>
  
  <!-- ====================================================================== -->
  <!-- Copyright (C) The Apache Software Foundation. All rights reserved.     -->
  <!--                                                                        -->
  <!-- This software is published under the terms of the Apache Software      -->
  <!-- License version 1.1, a copy of which has been included with this       -->
  <!-- distribution in the LICENSE file.                                      -->
  <!-- ====================================================================== -->
  
  <!-- ====================================================================== -->
  <!-- Modification of a rect's attributes                                    -->
  <!--                                                                        -->
  <!-- @author [EMAIL PROTECTED]                                               -->
  <!-- @version $Id: fill.svg,v 1.1 2002/03/20 16:39:38 tkormann Exp $ -->
  <!-- ====================================================================== -->
  
  <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>  
  
  <svg id="body" width="450" height="500" viewBox="0 0 450 500">
      <title>fill property on 'onload'</title>
  
      <text x="50%" y="45" class="title">'fill property on 'onload'</text>
  
      <script type="text/ecmascript"><![CDATA[
          function changeFill(evt, newValue) {
                  evt.target.setAttribute("style", "fill:"+newValue);
          }
  
      ]]></script>
  
      <g id="test-content">
  
         <g onload="changeFill(evt, '#eee')">
             <rect x="100" y="100" width="100" height="100" />
             <rect x="150" y="100" width="100" height="100" onload="changeFill(evt, 
'gold')" />
             <rect x="200" y="100" width="100" height="100" onload="changeFill(evt, 
'crimson')" />
             <rect x="250" y="100" width="100" height="100" onload="changeFill(evt, 
'orange')" />
         </g>
  
      </g>
  </svg>
  
  
  
  1.1                  xml-batik/samples/tests/spec/scripting/visibility.svg
  
  Index: visibility.svg
  ===================================================================
  <?xml version="1.0" standalone="no"?>
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
  "http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd";>
  
  <!-- ====================================================================== -->
  <!-- Copyright (C) The Apache Software Foundation. All rights reserved.     -->
  <!--                                                                        -->
  <!-- This software is published under the terms of the Apache Software      -->
  <!-- License version 1.1, a copy of which has been included with this       -->
  <!-- distribution in the LICENSE file.                                      -->
  <!-- ====================================================================== -->
  
  <!-- ====================================================================== -->
  <!-- Modification of a rect's attributes                                    -->
  <!--                                                                        -->
  <!-- @author [EMAIL PROTECTED]                                               -->
  <!-- @version $Id: visibility.svg,v 1.1 2002/03/20 16:39:38 tkormann Exp $ -->
  <!-- ====================================================================== -->
  
  <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>  
  
  <svg id="body" width="450" height="500" viewBox="0 0 450 500">
      <title>'visibility' property on 'onload'</title>
  
      <text x="50%" y="45" class="title">'visibility' property on 'onload'</text>
  
      <script type="text/ecmascript"><![CDATA[
          function changeVisibility(evt, newValue) {
                  evt.target.setAttribute("style", "visibility:"+newValue);
          }
  
      ]]></script>
  
      <g id="test-content">
  
         <g onload="changeVisibility(evt, 'hidden')" style="visibility:visible">
             <rect x="100" y="100" width="100" height="100" style="fill:#eee"/>
             <rect x="150" y="100" width="100" height="100" style="fill:gold"/>
             <rect x="200" y="100" width="100" height="100" style="fill:crimson"/>
             <rect x="250" y="100" width="100" height="100" style="fill:orange"/>
         </g>
  
         <g onload="changeVisibility(evt, 'visible')" style="visibility:hidden">
             <rect x="100" y="300" width="100" height="100" style="fill:#eee"/>
             <rect x="150" y="300" width="100" height="100" style="fill:gold"/>
             <rect x="200" y="300" width="100" height="100" style="fill:crimson"/>
             <rect x="250" y="300" width="100" height="100" style="fill:orange"/>
         </g>
  
      </g>
  </svg>
  
  
  
  1.1                  xml-batik/test-references/samples/tests/spec/scripting/fill.png
  
        <<Binary file>>
  
  
  1.1                  
xml-batik/test-references/samples/tests/spec/scripting/visibility.png
  
        <<Binary file>>
  
  
  1.62      +3 -1      
xml-batik/test-resources/org/apache/batik/test/samplesRendering.xml
  
  Index: samplesRendering.xml
  ===================================================================
  RCS file: 
/home/cvs/xml-batik/test-resources/org/apache/batik/test/samplesRendering.xml,v
  retrieving revision 1.61
  retrieving revision 1.62
  diff -u -r1.61 -r1.62
  --- samplesRendering.xml      7 Mar 2002 09:02:57 -0000       1.61
  +++ samplesRendering.xml      20 Mar 2002 16:39:39 -0000      1.62
  @@ -8,7 +8,7 @@
   
   <!-- ========================================================================= -->
   <!-- @author [EMAIL PROTECTED]                                         -->
  -<!-- @version $Id: samplesRendering.xml,v 1.61 2002/03/07 09:02:57 tkormann Exp $ 
-->
  +<!-- @version $Id: samplesRendering.xml,v 1.62 2002/03/20 16:39:39 tkormann Exp $ 
-->
   <!-- ========================================================================= -->
   <testSuite id="samplesRendering" name="samples and samples/test Rendering" 
class="org.apache.batik.test.svg.SamplesRenderingTest">
   
  @@ -267,6 +267,8 @@
           <test id="samples/tests/spec/scripting/transform.svg" />
           <test id="samples/tests/spec/scripting/transform2.svg" />
           <test id="samples/tests/spec/scripting/xyModifOnLoad.svg" />
  +        <test id="samples/tests/spec/scripting/fill.svg" />
  +        <test id="samples/tests/spec/scripting/visibility.svg" />
       </testGroup>
   
   </testSuite>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to