Skip to content

Commit

Permalink
8338668: Test javax/swing/JFileChooser/8080628/bug8080628.java doesn'…
Browse files Browse the repository at this point in the history
…t test for GTK L&F

Reviewed-by: aivanov, honkar, prr
  • Loading branch information
Abhishek Kumar committed Aug 27, 2024
1 parent cd9e241 commit b8e8e96
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions test/jdk/javax/swing/JFileChooser/8080628/bug8080628.java
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -33,7 +33,17 @@
* @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
*/
Expand Down Expand Up @@ -81,8 +91,10 @@ private static void runTest() {
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) {
Expand Down

0 comments on commit b8e8e96

Please sign in to comment.