vhardy      01/11/30 01:39:26

  Modified:    test-resources/org/apache/batik/test samplesRendering.xml
  Added:       test-references/samples/tests/spec/text textAnchor.png
               samples/tests/spec/text textAnchor.svg
  Log:
  Added test created by Thierry Kormann, validating Thomas DeWeese's fix on
  the text-anchor bug.
  
  Revision  Changes    Path
  1.52      +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.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- samplesRendering.xml      2001/11/29 12:07:12     1.51
  +++ samplesRendering.xml      2001/11/30 09:39:26     1.52
  @@ -8,7 +8,7 @@
   
   <!-- ========================================================================= -->
   <!-- @author [EMAIL PROTECTED]                                         -->
  -<!-- @version $Id: samplesRendering.xml,v 1.51 2001/11/29 12:07:12 vhardy Exp $ -->
  +<!-- @version $Id: samplesRendering.xml,v 1.52 2001/11/30 09:39:26 vhardy Exp $ -->
   <!-- ========================================================================= -->
   <testSuite id="samplesRendering" name="samples and samples/test Rendering" 
class="org.apache.batik.test.svg.SamplesRenderingTest">
   
  @@ -219,6 +219,7 @@
       <testGroup id="tests.spec.text">
           <test id="samples/tests/spec/text/longTextOnPath.svg" />
           <test id="samples/tests/spec/text/smallFonts.svg" />
  +        <test id="samples/tests/spec/text/textAnchor.svg" />
           <test id="samples/tests/spec/text/textBiDi.svg" />
           <test id="samples/tests/spec/text/textDecoration.svg" />
           <test id="samples/tests/spec/text/textEffect.svg" />
  
  
  
  1.1                  xml-batik/test-references/samples/tests/spec/text/textAnchor.png
  
        <<Binary file>>
  
  
  1.1                  xml-batik/samples/tests/spec/text/textAnchor.svg
  
  Index: textAnchor.svg
  ===================================================================
  <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" 
  "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.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.                                     -->
  <!-- ====================================================================== -->
  
  <!-- ====================================================================== -->
  <!-- Tests text-anchor on tspan elements                                    -->
  <!--                                                                        -->
  <!-- @author [EMAIL PROTECTED]                                               -->
  <!-- @version $Id: textAnchor.svg,v 1.1 2001/11/30 09:39:26 vhardy Exp $             
                                             -->
  <!-- ====================================================================== -->
  <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>  
  
  <svg width="450" height="500" viewBox="0 0 450 500" >
  
      <text class="title" x="50%" y="40">text-anchor on &lt;tspan&gt;</text>
  
      <g id="testContent" transform="translate(56.25, 82.5) scale(.75,.75)">
  
          <g transform="translate(0,0)">
              <rect width="450" height="167" fill="black" opacity=".1" />
              <rect y="167" width="450" height="167" fill="white" />
              <rect y="334" width="450" height="166" fill="black" opacity=".1" />
  
              <line x1="150" y1="0" x2="150" y2="500" style="stroke:red; fill:none" />
              <line x1="320" y1="0" x2="320" y2="500" style="stroke:red; fill:none" />
              <rect width="450" height="500" stroke="red" fill="none" />
          </g>
  
          <g transform="translate(0, 0)">
          <!-- ############################## -->
          <!-- textChunk1: text-anchor:start  -->
          <!-- textChunk2: text-anchor:start  -->
          <!-- ############################## -->
          <g transform="translate(0, 0)">
      
              <text y="50">
                  <tspan x="150" style="text-anchor:start">I am the</tspan>
                  <tspan style="fill:red"> same text chunk</tspan>
                  <tspan x="320" y="30" style="text-anchor:start">another text 
chunk</tspan>
              </text>
  
          </g>
  
  
          <!-- ############################## -->
          <!-- textChunk1: text-anchor:middle -->
          <!-- textChunk2: text-anchor:start  -->
          <!-- ############################## -->
          <g transform="translate(0 40)">
  
              <text y="50">
                  <tspan x="150" style="text-anchor:middle">I am the</tspan>
                  <tspan style="fill:red"> same text chunk</tspan>
                  <tspan x="320" y="30" style="text-anchor:start">another text 
chunk</tspan>
              </text>
  
          </g>
  
          <!-- ############################## -->
          <!-- textChunk1: text-anchor:end    -->
          <!-- textChunk2: text-anchor:start  -->
          <!-- ############################## -->
          <g transform="translate(0 80)">
  
              <text y="50">
                  <tspan x="150" style="text-anchor:end">I am the</tspan>
                  <tspan style="fill:red"> same text chunk</tspan>
                  <tspan x="320" y="30" style="text-anchor:start">another text 
chunk</tspan>
              </text>
  
          </g>
          </g>
  
          <!-- 
############################################################################ -->
          <!-- 
############################################################################ -->
  
          <g transform="translate(0 50)">
          <!-- ############################## -->
          <!-- textChunk1: text-anchor:start  -->
          <!-- textChunk2: text-anchor:middle -->
          <!-- ############################## -->
          <g transform="translate(0 120)">
  
              <text y="50">
                  <tspan x="150" style="text-anchor:start">I am the</tspan>
                  <tspan style="fill:red"> same text chunk</tspan>
                  <tspan x="320" y="30" style="text-anchor:middle">another text 
chunk</tspan>
              </text>
  
          </g>
  
  
          <!-- ############################## -->
          <!-- textChunk1: text-anchor:middle -->
          <!-- textChunk2: text-anchor:middle -->
          <!-- ############################## -->
          <g transform="translate(0 160)">
  
              <text y="50">
                  <tspan x="150" style="text-anchor:middle">I am the</tspan>
                  <tspan style="fill:red"> same text chunk</tspan>
                  <tspan x="320" y="30" style="text-anchor:middle">another text 
chunk</tspan>
              </text>
  
          </g>
  
          <!-- ############################## -->
          <!-- textChunk1: text-anchor:end    -->
          <!-- textChunk2: text-anchor:middle -->
          <!-- ############################## -->
          <g transform="translate(0 200)">
  
              <text y="50">
                  <tspan x="150" style="text-anchor:end">I am the</tspan>
                  <tspan style="fill:red"> same text chunk</tspan>
                  <tspan x="320" y="30" style="text-anchor:middle">another text 
chunk</tspan>
              </text>
  
          </g>
          </g>
  
          <!-- 
############################################################################ -->
          <!-- 
############################################################################ -->
          <g transform="translate(0, 80)">
  
          <!-- ############################# -->
          <!-- textChunk1: text-anchor:start -->
          <!-- textChunk2: text-anchor:end   -->
          <!-- ############################# -->
          <g transform="translate(0 260)">
  
              <text y="50">
                  <tspan x="150" style="text-anchor:start">I am the</tspan>
                  <tspan style="fill:red"> same text chunk</tspan>
                  <tspan x="320" y="30" style="text-anchor:end">another text 
chunk</tspan>
                  </text>
  
          </g>
  
  
          <!-- ############################## -->
          <!-- textChunk1: text-anchor:middle -->
          <!-- textChunk2: text-anchor:end    -->
          <!-- ############################## -->
          <g transform="translate(0 300)">
  
              <text y="50">
                  <tspan x="150" style="text-anchor:middle">I am the</tspan>
                  <tspan style="fill:red"> same text chunk</tspan>
                  <tspan x="320" y="30" style="text-anchor:end">another text 
chunk</tspan>
              </text>
  
          </g>
  
          <!-- ############################## -->
          <!-- textChunk1: text-anchor:end    -->
          <!-- textChunk2: text-anchor:end    -->
          <!-- ############################## -->
          <g transform="translate(0 340)">
  
              <text y="50">
                  <tspan x="150" style="text-anchor:end">I am the</tspan>
                  <tspan style="fill:red"> same text chunk</tspan>
                  <tspan x="320" y="30" style="text-anchor:end">another text 
chunk</tspan>
              </text>
  
          </g>
          </g>
      </g>
  
      <!-- ============================================================= -->
      <!-- Batik sample mark                                             -->
      <!-- ============================================================= -->
      <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
  </svg>
  
  
  

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

Reply via email to