You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by vh...@apache.org on 2002/09/05 17:58:35 UTC

cvs commit: xml-batik/test-sources/org/apache/batik/apps/rasterizer SVGConverterTest.java MainTest.java

vhardy      2002/09/05 08:58:34

  Modified:    test-sources/org/apache/batik/apps/rasterizer
                        SVGConverterTest.java MainTest.java
  Log:
  Fixed compilation regressions following changing in the PNGTranscoder KEY_INDEXED hint
  
  Revision  Changes    Path
  1.14      +3 -3      xml-batik/test-sources/org/apache/batik/apps/rasterizer/SVGConverterTest.java
  
  Index: SVGConverterTest.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/test-sources/org/apache/batik/apps/rasterizer/SVGConverterTest.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- SVGConverterTest.java	22 Jun 2002 12:06:07 -0000	1.13
  +++ SVGConverterTest.java	5 Sep 2002 15:58:34 -0000	1.14
  @@ -76,9 +76,9 @@
           t.setId("HintsConfigTest.KEY_QUALITY");
   
           t = new HintsConfigTest(new Object[][]{
  -            {PNGTranscoder.KEY_INDEXED, Boolean.TRUE}}){
  +            {PNGTranscoder.KEY_INDEXED, new Integer(8)}}){
                   protected void deltaConfigure(SVGConverter c){
  -                    c.setIndexed(true);
  +                    c.setIndexed(8);
                   }
               };
           addTest(t);
  
  
  
  1.7       +4 -4      xml-batik/test-sources/org/apache/batik/apps/rasterizer/MainTest.java
  
  Index: MainTest.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/test-sources/org/apache/batik/apps/rasterizer/MainTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- MainTest.java	22 Jun 2002 12:06:07 -0000	1.6
  +++ MainTest.java	5 Sep 2002 15:58:34 -0000	1.7
  @@ -375,12 +375,12 @@
           addTest(t);
           t.setId("MainConfigTest.quality");
   
  -        t = new MainConfigTest("-indexed"){
  +        t = new MainConfigTest("-indexed 8"){
                   public TestReport validate(SVGConverter c){
  -                    if(c.getIndexed()){
  +                    if(c.getIndexed() == 8){
                           return reportSuccess();
                       } else {
  -                        return reportError("-indexed", "true", 
  +                        return reportError("-indexed", "8", 
                                              "" + c.getIndexed());
                       }
                   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org