< prev index next >

test/jdk/javax/swing/JFileChooser/8046391/bug8046391.java

Print this page
rev 51542 : 8210039: move OSInfo to top level testlibrary
Reviewed-by: duke

@@ -25,30 +25,28 @@
  * @test
  * @bug 8046391
  * @requires (os.family == "windows")
  * @summary JFileChooser hangs if displayed in Windows L&F
  * @author Alexey Ivanov
- * @library ../../../../lib/testlibrary
+ * @library /test/lib
  * @modules java.desktop/com.sun.java.swing.plaf.windows
- * @build jdk.testlibrary.OSInfo
+ * @build jdk.test.lib.Platform
  * @run main/othervm/timeout=10 bug8046391
 */
 
 import com.sun.java.swing.plaf.windows.WindowsLookAndFeel;
-import jdk.testlibrary.OSInfo;
-import jdk.testlibrary.OSInfo.OSType;
+import jdk.test.lib.Platform;
 
 import javax.swing.JFileChooser;
 import javax.swing.SwingUtilities;
 import javax.swing.UIManager;
 import javax.swing.UnsupportedLookAndFeelException;
 
 public class bug8046391  {
 
     public static void main(String[] args) throws Exception {
-        OSType type = OSInfo.getOSType();
-        if (type != OSType.WINDOWS) {
+        if (!Platform.isWindows()) {
             System.out.println("This test is for Windows only... skipping!");
             return;
         }
 
         SwingUtilities.invokeAndWait(() -> {
< prev index next >