RFR: 8282270: java/awt/Robot Screen Capture tests fail after 8280861

Alexey Ivanov aivanov at openjdk.java.net
Wed Mar 9 11:05:05 UTC 2022


On Wed, 9 Mar 2022 10:32:26 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> Shouldn't the image be larger than 400×300? The size of the frame is 400×300 in user's space, the test is running with uiScaleX=3 and uiScaleY=2, therefore the size of the frame should be 1200×600. In some cases, such a size may not fit on the screen.

This is what happened on Windows:
![Captured image on Windows](https://user-images.githubusercontent.com/70774172/157427018-4b7acdb9-145a-426c-888d-8d4be33b0fc0.png)

The frame didn't fit on the screen. According to the screenshot of the entire screen, the resolution on the host was 1024×768. It can't fit the frame which is larger than screen 1200×600, especially when it is positioned at 83*3=248, 97*2=194.

This failure has nothing to do with [JDK-8280861](https://bugs.openjdk.java.net/browse/JDK-8280861), it's just a coincidence.

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

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



More information about the client-libs-dev mailing list