RFR: 8294067: [macOS] javax/swing/JComboBox/6559152/bug6559152.java Cannot select an item from popup with the ENTER key.

Alexander Zvegintsev azvegint at openjdk.org
Tue Sep 20 16:46:51 UTC 2022


On Tue, 20 Sep 2022 15:57:24 GMT, Damon Nguyen <dnguyen at openjdk.org> wrote:

> The newly fix-sized JComboBox has its dropdown menu opened with this test's mouse click. The goal of the test is to focus the JComboBox, open the dropdown menu, and select the 2nd option of the menu using arrow keys and ENTER key. Since the JComboBox is focused without the click already, the click can be removed.

Personally I would prefer to keep the click for better test stability. 
Let's hear some thoughts from other reviewers.

P.S. looks like I am not the only one concerning about this.

test/jdk/javax/swing/JComboBox/6559152/bug6559152.java line 100:

> 98: 
> 99:     private static void test() throws Exception {
> 100:         robot.mouseMove(p.x, p.y);

Are we still need this? There is no more mouse click.

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

Marked as reviewed by azvegint (Reviewer).

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



More information about the client-libs-dev mailing list