Skip to content

Commit 4be1e87

Browse files
committed
8335131: Test "javax/swing/JColorChooser/Test6977726.java" failed on ubuntu x64 because "Preview" title is missing for GTK L&F
Backport-of: 0c3720b42176c7bc92105be87df7449973fbcea0
1 parent 0c923e8 commit 4be1e87

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

test/jdk/javax/swing/JColorChooser/Test6977726.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,14 @@ public static void main(String[] args) throws Exception {
4141
String instructions = """
4242
Check that there is a panel with "Text Preview Panel" text
4343
and with title "Preview" in the JColorChooser.
44-
Test passes if the panel is as described, test fails otherwise.""";
44+
Test passes if the panel is as described, test fails otherwise.
45+
46+
Note: "Preview" title is not applicable for GTK Look and Feel.""";
47+
48+
// In case this test is run with GTK L&F, the preview panel title
49+
// is missing due to the "ColorChooser.showPreviewPanelText" property
50+
// which is set to "Boolean.FALSE" for GTK L&F. Test instructions are
51+
// modified to reflect that "Preview" title is not applicable for GTK L&F.
4552

4653
PassFailJFrame.builder()
4754
.title("Test6977726")

0 commit comments

Comments
 (0)