git: openjdk/jdk: master: 8332901: Select{Current,New}ItemTest.java for Choice don't open popup on macOS

Alexey Ivanov aivanov at openjdk.org
Wed Sep 4 16:39:16 UTC 2024


Changeset: ef96a7b0
Branch: master
Author:    Alexey Ivanov <aivanov at openjdk.org>
Date:      2024-09-04 16:37:17 +0000
URL:       https://git.openjdk.org/jdk/commit/ef96a7b014795f366af3a90ef8f474cfb621197f

8332901: Select{Current,New}ItemTest.java for Choice don't open popup on macOS

Move SelectCurrentItemTest.java to java/awt/Choice/SelectItem/.
Move SelectNewItemTest.java to java/awt/Choice/SelectItem/.
Use latches to control test flow instead of delays.
Encapsulate the common logic in SelectCurrentItemTest.
Provide overridable checkXXX() methods to modify conditions.
Provide an overridable method which defines where to click
in the choice popup to select an item.

Reviewed-by: honkar, prr, dnguyen

! test/jdk/ProblemList.txt
- test/jdk/java/awt/Choice/SelectCurrentItemTest/SelectCurrentItemTest.java
+ test/jdk/java/awt/Choice/SelectItem/SelectCurrentItemTest.java
+ test/jdk/java/awt/Choice/SelectItem/SelectNewItemTest.java
- test/jdk/java/awt/Choice/SelectNewItemTest/SelectNewItemTest.java



More information about the jdk-changes mailing list