xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r1049003 - /xmlgraphics/commons/branches/Temp_Color/test/java/org/apache/xmlgraphics/java2d/color/NamedColorTest.java
Date Tue, 14 Dec 2010 09:34:59 GMT
Author: jeremias
Date: Tue Dec 14 09:34:59 2010
New Revision: 1049003

URL: http://svn.apache.org/viewvc?rev=1049003&view=rev
Log:
Allowing for some fuzziness due to differences in XYZ->sRGB calculation between Java 1.5
and 6. Apparently, the two are using different sRGB profiles or slightly different calculation
methods.

Modified:
    xmlgraphics/commons/branches/Temp_Color/test/java/org/apache/xmlgraphics/java2d/color/NamedColorTest.java

Modified: xmlgraphics/commons/branches/Temp_Color/test/java/org/apache/xmlgraphics/java2d/color/NamedColorTest.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/branches/Temp_Color/test/java/org/apache/xmlgraphics/java2d/color/NamedColorTest.java?rev=1049003&r1=1049002&r2=1049003&view=diff
==============================================================================
--- xmlgraphics/commons/branches/Temp_Color/test/java/org/apache/xmlgraphics/java2d/color/NamedColorTest.java
(original)
+++ xmlgraphics/commons/branches/Temp_Color/test/java/org/apache/xmlgraphics/java2d/color/NamedColorTest.java
Tue Dec 14 09:34:59 2010
@@ -56,8 +56,10 @@ public class NamedColorTest extends Test
             assertEquals(c1xyz[i], xyz[i], 0.001f);
         }
 
-        assertEquals(254, c1.getRed());
-        assertEquals(195, c1.getGreen());
+        //NOTE: Allowing for some fuzziness due to differences in XYZ->sRGB calculation
between
+        //Java 1.5 and 6.
+        assertEquals(254, c1.getRed(), 1f);
+        assertEquals(195, c1.getGreen(), 2f);
         assertEquals(0, c1.getBlue());
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message