RFR: 8297213: Robot capture tests should move mouse to corner of screen

Kevin Rushforth kcr at openjdk.org
Fri Nov 18 16:17:29 UTC 2022


On Fri, 18 Nov 2022 00:48:11 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> Added Util.parkCursor(Robot) method to move the cursor to lower left corner (while avoiding dock, tray, or active corners).

Looks good with one inline comment about a redundant call to `parkCursor`.

tests/system/src/test/java/test/robot/javafx/scene/layout/RegionBackgroundImageUITest.java line 50:

> 48:     @Before
> 49:     public void before() {
> 50:         Util.parkCursor(getRobot());

This is redundant, since `RegionBackgroundImageUITest` extends from `VisuaTestBase`, which already calls `parkCursor`. You can remove the `before` method.

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

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


More information about the openjfx-dev mailing list