Skip to content

Commit 2f7f75d

Browse files
committed
8338668: Test javax/swing/JFileChooser/8080628/bug8080628.java doesn't test for GTK L&F
Backport-of: b8e8e965e541881605f9dbcd4d9871d4952b9232
1 parent 37c1efa commit 2f7f75d

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

test/jdk/javax/swing/JFileChooser/8080628/bug8080628.java

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -33,7 +33,17 @@
3333
* @test
3434
* @bug 8080628
3535
* @summary No mnemonics on Open and Save buttons in JFileChooser.
36-
* @author Alexey Ivanov
36+
* @requires os.family != "linux"
37+
* @modules java.desktop/sun.swing
38+
* @run main bug8080628
39+
*/
40+
41+
/*
42+
* @test
43+
* @bug 8080628
44+
* @key headful
45+
* @summary No mnemonics on Open and Save buttons in JFileChooser.
46+
* @requires os.family == "linux"
3747
* @modules java.desktop/sun.swing
3848
* @run main bug8080628
3949
*/
@@ -81,8 +91,10 @@ private static void runTest() {
8191
try {
8292
UIManager.setLookAndFeel(info.getClassName());
8393
} catch (final UnsupportedLookAndFeelException ignored) {
94+
System.out.println("Unsupported L&F: " + info.getClassName());
8495
continue;
8596
}
97+
System.out.println("Testing L&F: " + info.getClassName());
8698

8799
for (Locale locale : LOCALES) {
88100
for (String key : MNEMONIC_KEYS) {

0 commit comments

Comments
 (0)