Skip to content

Commit 20c7790

Browse files
committed
8347475: GTK: javax/swing/JColorChooser/Test8152419.java there are no swatches or RGB tab in JColorChooser
Backport-of: 8458f88
1 parent 9e29f47 commit 20c7790

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

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

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2025, 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
@@ -21,11 +21,12 @@
2121
* questions.
2222
*/
2323

24-
/*
25-
* @test
26-
* @bug 8152419
27-
* @summary To Verify JColorChooser tab selection
28-
* @run main/manual Test8152419
24+
/*
25+
* @test
26+
* @bug 8152419
27+
* @library /test/lib
28+
* @summary To Verify JColorChooser tab selection
29+
* @run main/manual Test8152419
2930
*/
3031

3132
import java.awt.Color;
@@ -43,9 +44,17 @@
4344
import javax.swing.UIManager;
4445
import javax.swing.border.EmptyBorder;
4546

47+
import jtreg.SkippedException;
48+
4649
public class Test8152419 {
4750

4851
public static void main(String args[]) throws Exception {
52+
// ColorChooser UI design is different for GTK L&F.
53+
// There are no tabs available for GTK L&F, skip the testing.
54+
if (UIManager.getLookAndFeel().getName().contains("GTK")) {
55+
throw new SkippedException("Test not applicable for GTK L&F");
56+
}
57+
4958
final CountDownLatch latch = new CountDownLatch(1);
5059

5160
JColorChooserTest test = new JColorChooserTest(latch);

0 commit comments

Comments
 (0)