RFR: 8296589: PixelBufferDrawTest fails on some systems

Andy Goryachev angorya at openjdk.org
Wed Nov 9 18:10:06 UTC 2022


On Wed, 9 Nov 2022 18:00:31 GMT, Lukasz Kostyra <duke at openjdk.org> wrote:

> Issue happening on some hardware due to slightly different pixel values being returned.
> 
> Increased tolerance of asserts in compareColor function to allow these tests to pass (0.01 delta is still tighter than other similar tests which use 0.07).

tests/system/src/test/java/test/robot/javafx/scene/PixelBufferDrawTest.java line 189:

> 187: 
> 188:     private void compareColor(Color exp, Color act) {
> 189:         Assert.assertEquals(exp.getRed(), act.getRed(), 0.01);

I am curious: what is the source of these differences?
Is it color model (and could we explicitly set the CM?)
Or is it differences in anti-aliasing or some such?

-------------

PR: https://git.openjdk.org/jfx/pull/944


More information about the openjfx-dev mailing list