]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Adjust range of valid results for OpenJDK 6
authorJeremias Maerki <jeremias@apache.org>
Thu, 10 Feb 2011 09:31:39 +0000 (09:31 +0000)
committerJeremias Maerki <jeremias@apache.org>
Thu, 10 Feb 2011 09:31:39 +0000 (09:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Color@1069305 13f79535-47bb-0310-9956-ffa450edef68

test/java/org/apache/fop/util/ColorUtilTestCase.java

index c466b6cc68aa580602e8be6facf6227b7fea749c..7b5995259adadaf693eb386b84499a6eb1fd1897 100644 (file)
@@ -254,9 +254,9 @@ public class ColorUtilTestCase extends TestCase {
 
         colSpec = "fop-rgb-icc(1.0,0.8,0.0,#Separation,,Postgelb)";
         colActual = (ColorWithFallback)ColorUtil.parseColorString(null, colSpec);
-        assertEquals(255, colActual.getRed(), 2);
+        assertEquals(255, colActual.getRed(), 5);
         assertEquals(204, colActual.getGreen(), 3);
-        assertEquals(0, colActual.getBlue(), 6);
+        assertEquals(0, colActual.getBlue(), 12);
         //sRGB results differ between JDKs
 
         Color fallback = colActual.getFallbackColor();
@@ -295,7 +295,7 @@ public class ColorUtilTestCase extends TestCase {
         String colSpec = "fop-rgb-named-color(1.0,0.8,0.0,NCP,"
             + "\"" + ncpLoc.toASCIIString() + "\",Postgelb)";
         colActual = (ColorWithFallback)ColorUtil.parseColorString(ua, colSpec);
-        assertEquals(255, colActual.getRed(), 1);
+        assertEquals(255, colActual.getRed(), 2);
         assertEquals(193, colActual.getGreen(), 2);
         assertEquals(0, colActual.getBlue());