File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
test/jdk/javax/swing/JColorChooser Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 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
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
3132import java .awt .Color ;
4344import javax .swing .UIManager ;
4445import javax .swing .border .EmptyBorder ;
4546
47+ import jtreg .SkippedException ;
48+
4649public 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 );
You can’t perform that action at this time.
0 commit comments