RFR: 8292588: [macos] Multiscreen/MultiScreenLocationTest/MultiScreenLocationTest.java: Robot.mouseMove test failed on Screen #0 [v2]

Damon Nguyen dnguyen at openjdk.org
Fri Feb 3 22:42:51 UTC 2023


On Thu, 26 Jan 2023 00:16:03 GMT, Alisen Chung <achung at openjdk.org> wrote:

> > The suggested change does fix the mouse pointer issue.
> > However, the test still fails for me:
> > ```
> > Exception in thread "main" java.lang.RuntimeException: Robot.getPixelColor test failed on Screen #1!
> > 	at MultiScreenLocationTest.main(MultiScreenLocationTest.java:98)
> > ```
> > 
> > 
> >     
> >       
> >     
> > 
> >       
> >     
> > 
> >     
> >   
> > Is it possible to add diagnostic information?
> > If `moveMove` fails, one may want to see what the coordinates are, what the expected coordinates are and what the bounds of the current screen are.
> > If `getPixelColor` fails, what is the color of the pixel and what is the expected color?
> > These changes will be helpful for you while you debugging and updating the test as well as for anyone who has to deal with the test later.
> 
> Sure, I can add that. What fixed the issue for me for the latter two issues was setting the color profile of the second monitor in the system preferences. Under Display > Color I set Display Profile to be sRGB IEC61966-2.1 on the second monitor and the test then passes.

My test initially failed as well, but after changing my 2nd monitor's color profile as described, it does pass.

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

PR: https://git.openjdk.org/jdk/pull/10363



More information about the client-libs-dev mailing list