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

Alexey Ivanov aivanov at openjdk.org
Fri Sep 27 10:46:40 UTC 2024


On Thu, 19 Sep 2024 11:45:36 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> Backporting [JDK-8332901](https://bugs.openjdk.org/browse/JDK-8332901) to 23u.
> 
> The patch does not apply cleanly, there's a conflict in `test/jdk/ProblemList.txt` because of context differences. JDK 23u does not have the *Wayland related* problem-listings.
> 
> Essentially, the change to `ProblemList.txt` is the same: remove `SelectNewItemTest.java` from PL.
> 
>> This pull request contains a backport of commit [ef96a7b0](https://github.com/openjdk/jdk/commit/ef96a7b014795f366af3a90ef8f474cfb621197f) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository.
>> 
>> The commit being backported was authored by Alexey Ivanov on 4 Sep 2024 and was reviewed by Harshitha Onkar, Phil Race and Damon Nguyen.

This pull request has now been integrated.

Changeset: fa008ded
Author:    Alexey Ivanov <aivanov at openjdk.org>
URL:       https://git.openjdk.org/jdk23u/commit/fa008ded77ce14d0c33b5ad6fc612ae3c983f019
Stats:     593 lines in 5 files changed: 276 ins; 317 del; 0 mod

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.

Backport-of: ef96a7b014795f366af3a90ef8f474cfb621197f

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

PR: https://git.openjdk.org/jdk23u/pull/107


More information about the jdk-updates-dev mailing list