< prev index next >
test/javax/swing/plaf/nimbus/8041642/ScrollBarThumbVisibleTest.java
Print this page
rev 17561 : 8185500: [TESTBUG] Add keywords headful/printer in java/awt and javax tests.
Summary: Add new keyword 'printer'. Some minor test fixes to show headless exception. Add some @requires windows.
@@ -19,15 +19,17 @@
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
-/* @test
- @bug 8134828
- @summary Scrollbar thumb disappears with Nimbus L&F
- @author Semyon Sadetsky
-*/
+/**
+ * @test
+ * @key headful
+ * @bug 8134828
+ * @summary Scrollbar thumb disappears with Nimbus L&F
+ * @author Semyon Sadetsky
+ */
import javax.swing.*;
import java.awt.*;
public class ScrollBarThumbVisibleTest
@@ -74,11 +76,11 @@
}
} finally {
SwingUtilities.invokeAndWait(new Runnable() {
@Override
public void run() {
- frame.dispose();
+ if (frame != null) { frame.dispose(); }
}
});
}
System.out.println("ok");
}
< prev index next >