RFR: JDK-8341278 : Open source few TrayIcon tests - Set7
Alexander Zvegintsev
azvegint at openjdk.org
Mon Oct 7 18:55:35 UTC 2024
On Fri, 4 Oct 2024 23:02:07 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:
>> The following tests are open-sourced. All are manual tests
>>
>> 1. test/jdk/java/awt/TrayIcon/ClearPrevImageTest.java
>>
>> 2. test/jdk/java/awt/TrayIcon/FocusLostAfterTrayTest.java
>>
>> 3. test/jdk/java/awt/TrayIcon/MouseMoveTest.java - problemlisted on linux
>>
>> 4. test/jdk/java/awt/TrayIcon/RemoveSystemTrayTest.java
>>
>> 5. test/jdk/java/awt/TrayIcon/TrayIconKeySelectTest.java - Windows only test and problemlisted on windows as the keyboard actions for trayicon don't work.
>
> test/jdk/java/awt/TrayIcon/RemoveSystemTrayTest.java line 65:
>
>> 63: 4) Press button 'Show message'.
>> 64: 5) If you see the tray icon message then press FAIL else press PASS.
>> 65: """;
>
> This test was originally created for Solaris issue.
>
> On macOS and Windows I was unable to remove the "System Tray" although there are options like pause notifications and hide trayicons, but in both cases with tray icon showing as well as hidden I wasn't able to see TrayIco msg.
>
> On Ubuntu I'm unable to remove the System Tray but used the Do Not Disturb option to pause any notifications but in both cases the TrayIcon msg is displayed.
>
> Is this test relevant to be retained or am I missing something while testing because I didn't find any options to remove the SystemTray on macOS, Windows & Ubuntu?
It's possible on Ubuntu, but not out of the box, it requires disabling the Ubuntu AppIndicators Gnome Shell extension.
AFAIK to disable extensions you need to install additional software(or perform some command in the terminal), so I suggest just not adding this test.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21365#discussion_r1790719868
More information about the client-libs-dev
mailing list