You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-commits@xmlgraphics.apache.org by de...@apache.org on 2005/03/19 02:59:10 UTC

cvs commit: xml-batik/test-resources/org/apache/batik/test samplesRendering.xml

deweese     2005/03/18 17:59:10

  Modified:    samples/tests/spec/scripting getElementById.svg
               test-references/samples/tests/spec/scripting
                        getElementById.png
               test-resources/org/apache/batik/test samplesRendering.xml
  Added:       samples/tests/spec/scripting svgFontMove.svg
               test-references/samples/tests/spec/scripting svgFontMove.png
  Log:
  New tests for recent bug fixes.
  
  Revision  Changes    Path
  1.2       +8 -4      xml-batik/samples/tests/spec/scripting/getElementById.svg
  
  Index: getElementById.svg
  ===================================================================
  RCS file: /home/cvs/xml-batik/samples/tests/spec/scripting/getElementById.svg,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- getElementById.svg	28 Feb 2005 17:37:18 -0000	1.1
  +++ getElementById.svg	19 Mar 2005 01:59:09 -0000	1.2
  @@ -107,7 +107,9 @@
            checkTest(null, svg1, "id9", "t21");
            checkTest(id9,  svg2, "id9", "t22");
   
  -         
  +         var id5_2 = id5.cloneNode(true);
  +         g.appendChild(id5_2);
  +         checkTest(id5_2, document, "id5", "t23");
         }
      </script>
   
  @@ -121,9 +123,9 @@
               fill="crimson" stroke="black"
         /><svg id="svg1" x="0" y="0" width="450" height="500"
            ><rect id="id5" x="250" y="60" width="50" height="50"
  -               fill="crimson" stroke="black"
  -         /><rect id="id6" x="310" y="60" width="50" height="50"
                  fill="gold" stroke="black"
  +         /><rect id="id6" x="310" y="60" width="50" height="50"
  +               fill="crimson" stroke="black"
         /></svg><rect id="id7" x="370" y="60" width="50" height="50"
                       fill="gold" stroke="black"/>
   
  @@ -175,5 +177,7 @@
          >Test 21: <tspan id="t21" x="225" text-anchor="start"/></text>
         <text x="220" y="340" text-anchor="end"
          >Test 22: <tspan id="t22" x="225" text-anchor="start"/></text>
  +      <text x="220" y="360" text-anchor="end"
  +       >Test 23: <tspan id="t23" x="225" text-anchor="start"/></text>
      </g>
   </svg>
  
  
  
  1.1                  xml-batik/samples/tests/spec/scripting/svgFontMove.svg
  
  Index: svgFontMove.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 2003  The Apache Software Foundation 
  
     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at
  
         http://www.apache.org/licenses/LICENSE-2.0
  
     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
  
  -->
  <!-- ====================================================================== -->
  <!-- Modification of a circle attributes                                    -->
  <!--                                                                        -->
  <!-- @author tkormann@ilog.fr                                               -->
  <!-- @version $Id: svgFontMove.svg,v 1.1 2005/03/19 01:59:09 deweese Exp $ -->
  <!-- ====================================================================== -->
  
  <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>  
  
  <svg id="body" width="450" height="500" viewBox="0 0 450 500"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">
  
     <title>Testing script updates of SVG Font text.</title>
     <text x="50%" y="45" class="title"
      >Testing script updates of SVG Font text.</text>
  
     <font-face font-family="stroke">
        <font-face-src>
           <font-face-uri xlink:href="../../../strokeFont.svg#strokeB"/>
        </font-face-src>     
     </font-face>
  
     <script type="text/ecmascript"><![CDATA[
          var inRegard=false;
          function moveText() {
            var t = document.getElementById("txt");
            t.setAttribute("x", "225");
            if (inRegard) 
                 setTimeout('regardTestInstance.scriptDone()', 100);
  	}
         function regardStart() {
            inRegard = true;
            moveText();
         }
      ]]></script>
  
     <g id="test-content">
        <text id="txt" font-family="stroke" font-size="25" text-anchor="middle" 
              x="200" y="250" onclick="moveText()">SVG Font Text</text>
     </g>
  
  </svg>
  
  
  
  
  1.2       +45 -35    xml-batik/test-references/samples/tests/spec/scripting/getElementById.png
  
  	<<Binary file>>
  
  
  1.1                  xml-batik/test-references/samples/tests/spec/scripting/svgFontMove.png
  
  	<<Binary file>>
  
  
  1.129     +2 -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.128
  retrieving revision 1.129
  diff -u -r1.128 -r1.129
  --- samplesRendering.xml	15 Mar 2005 11:24:36 -0000	1.128
  +++ samplesRendering.xml	19 Mar 2005 01:59:10 -0000	1.129
  @@ -431,6 +431,7 @@
           <test id="samples/tests/spec/scripting/rectResizeOnClick.svg" />
           <test id="samples/tests/spec/scripting/setProperty.svg" />
           <test id="samples/tests/spec/scripting/styling.svg" />
  +        <test id="samples/tests/spec/scripting/svgFontMove.svg" />
           <test id="samples/tests/spec/scripting/text_content.svg" />
           <test id="samples/tests/spec/scripting/textProperties2.svg" />
           <test id="samples/tests/spec/scripting/visibilityOnClick.svg" />