RFR: 8306464: [testbug] CustomSecurityManagerTest full screen tests fails on MacOS intermittently

Karthik P K kpk at openjdk.org
Thu Apr 20 08:44:09 UTC 2023


Usage of `getBounds()` method instead `getVisualBounds()` was giving unreliable screen bound values and color value was read very close to the edge of the window.

Updated the code to use `getVisualBounds()` instead of `getBounds()` and moved the coordinates inside the window from where the color value is read.

Ran the tests individually and along with all system tests in following systems. No failure found after the fix.
Mac M1 with Ventura 13.3
Window 11

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

Commit messages:
 - Fix full screen test failure

Changes: https://git.openjdk.org/jfx/pull/1103/files
 Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1103&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8306464
  Stats: 4 lines in 1 file changed: 0 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jfx/pull/1103.diff
  Fetch: git fetch https://git.openjdk.org/jfx.git pull/1103/head:pull/1103

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


More information about the openjfx-dev mailing list