On Thu, 6 Nov 2025 01:00:43 GMT, Harshitha Onkar <[email protected]> wrote:

> /javax/swing/JFileChooser/bug4759934.java test changes related to addition of 
> new method to Util - https://github.com/openjdk/jdk/pull/27944.

test/jdk/javax/swing/JFileChooser/bug4759934.java line 74:

> 72:             robot.mouseMove(dlgBtnLoc.x , dlgBtnLoc.y);
> 73:             robot.mousePress(MouseEvent.BUTTON1_DOWN_MASK);
> 74:             robot.mouseRelease(MouseEvent.BUTTON1_DOWN_MASK);

https://github.com/openjdk/jdk/pull/27944#discussion_r2490547507

> All the clicks above are to click a button… Should we replace these clicks 
> with programmatic clicks?

This is more reliable and quicker than robot.

The only possible issue is to to ensure the updated test still reproduces the 
original bug.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28169#discussion_r2498919704

Reply via email to