8338668: Test javax/swing/JFileChooser/8080628/bug8080628.java doesn't test for GTK L&F

Reviewed-by: aivanov, honkar, prr
This commit is contained in:
Abhishek Kumar 2024-08-27 04:15:08 +00:00
parent cd9e241f0e
commit b8e8e965e5

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -33,7 +33,17 @@ import sun.swing.SwingUtilities2;
* @test
* @bug 8080628
* @summary No mnemonics on Open and Save buttons in JFileChooser.
* @author Alexey Ivanov
* @requires os.family != "linux"
* @modules java.desktop/sun.swing
* @run main bug8080628
*/
/*
* @test
* @bug 8080628
* @key headful
* @summary No mnemonics on Open and Save buttons in JFileChooser.
* @requires os.family == "linux"
* @modules java.desktop/sun.swing
* @run main bug8080628
*/
@ -81,8 +91,10 @@ public class bug8080628 {
try {
UIManager.setLookAndFeel(info.getClassName());
} catch (final UnsupportedLookAndFeelException ignored) {
System.out.println("Unsupported L&F: " + info.getClassName());
continue;
}
System.out.println("Testing L&F: " + info.getClassName());
for (Locale locale : LOCALES) {
for (String key : MNEMONIC_KEYS) {