<AWT Dev> Integrated: 8254349: The TestNoScreenMenuBar test should be updated

Sergey Bylokhov serb at openjdk.java.net
Fri Oct 16 22:01:11 UTC 2020


On Sat, 10 Oct 2020 11:19:05 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> This test tries to run an external application to make itself non-active and then sets and checks the global menu.
> 
> But it has a few issues:
>  - As an external app, the "System Settings" app is used, but it looks like in macOS Catalina this app was moved, and
>    nothing actually starts
>  - The external app is closed via osascript which required special permission, and it is requested via a modal dialog if
>    not granted already
>  - It looks like the attempt to close(already closed app, since the open step failed) the "System Settings" via osascript
>    actually activates it instead
> 
> So to prevent one more permission, and usage of some external app I just use the same java test as an external app but
> in a separate process. I have checked that the test fails if the fix for JDK-8146310 is removed.

This pull request has now been integrated.

Changeset: e66c6bb9
Author:    Sergey Bylokhov <serb at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/e66c6bb9
Stats:     37 lines in 1 file changed: 18 ins; 5 del; 14 mod

8254349: The TestNoScreenMenuBar test should be updated

Reviewed-by: pbansal

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

PR: https://git.openjdk.java.net/jdk/pull/587


More information about the awt-dev mailing list