Skip to content

Commit

Permalink
Allowing for some fuzziness due to differences in XYZ->sRGB calculati…
Browse files Browse the repository at this point in the history
…on between Java 1.5 and 6. Apparently, the two are using different sRGB profiles or slightly different calculation methods.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/commons/branches/Temp_Color@1049003 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
jmaerki committed Dec 14, 2010
1 parent 971c707 commit 6fa3af4
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -56,8 +56,10 @@ public void testNamedColorWithCIELab() throws Exception {
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());
}

Expand Down

0 comments on commit 6fa3af4

Please sign in to comment.