JDK-8255079 : RobotTest::testPixelCaptureAverage fails intermittently on Windows with HiDPI scaling
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: jfx15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-10-20
  • Updated: 2023-09-30
  • Resolved: 2023-09-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
jfx22 b10Fixed
Related Reports
Relates :  
Relates :  
Description
To reproduce this, run the following on a Windows 10 system with HiDPI scaling of 125%. It will fail some of the time (about 1/3 of the time on my system).

$ gradle --info -PFULL_TEST=true -PUSE_ROBOT=true cleanTest :systemTests:test --tests RobotTest.testPixelCaptureAverage

test.robot.javafx.scene.RobotTest > testPixelCaptureAverage FAILED
    junit.framework.AssertionFailedError: expected: rgba(0,0,255,255) but was: rgba(255,0,0,255)
        at test.robot.javafx.scene.RobotTest.assertColorEquals(RobotTest.java:839)
        at test.robot.javafx.scene.RobotTest.testPixelCaptureAverage(RobotTest.java:695)

Comments
Changeset: 2ae8c270 Author: Lukasz Kostyra <lkostyra@openjdk.org> Date: 2023-09-18 07:06:58 +0000 URL: https://git.openjdk.org/jfx/commit/2ae8c270ea99c2e979e4922a9652363f59d4b293
18-09-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jfx/pull/1242 Date: 2023-09-15 15:20:36 +0000
15-09-2023