<AWT Dev> RFR: 8254349: The TestNoScreenMenuBar test should be updated
Pankaj Bansal
pbansal at openjdk.java.net
Fri Oct 16 19:19:13 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.
Marked as reviewed by pbansal (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/587
More information about the awt-dev
mailing list