RFR: 8274304: Update or Problem List tests which may fail with uiScale=2 on macOS

Sergey Bylokhov serb at openjdk.java.net
Fri Oct 8 00:14:05 UTC 2021


On Thu, 7 Oct 2021 23:41:37 GMT, Phil Race <prr at openjdk.org> wrote:

> Once again, hi-dpi does not matter for these tests. It is not what they are trying to test and there is no other "hi-dpi" testing going on anyway on these other platforms

Why hiDPI does not matter for the tests like these PaintNativeOnUpdate/BackgroundIsNotUpdated/TranslucentJAppletTest? All of them may have different bihaviour in low and hi modes.

> there is no other "hi-dpi" testing going on anyway on these other platforms

I run the tests in this mode all the time.

> I looked at the Robot code and it was getting different answers _from a macos api_ depending on whether it asked for some larger region first.

It is just impossible that CGWindowListCreateImage which we use to catch the pixels returns different results, since we call it using the same coordinates, it does not affect by the uiScale option. The bug in some other place/methods. We ever calculate the wrong bounds/size of the image or incorrectly store it.

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

PR: https://git.openjdk.java.net/jdk/pull/5766



More information about the client-libs-dev mailing list