< prev index next >

test/jdk/javax/swing/JTabbedPane/6416920/bug6416920.java

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

@@ -25,28 +25,29 @@
  * @test
  * @bug 6416920
  * @summary Ensures that selected tab is painted properly in the scroll tab layout
  *         under WindowsLookAndFeel in Windows' "Windows XP" theme.
  * @author Mikhail Lapshin
- * @library ../../../../lib/testlibrary
- * @build jdk.testlibrary.OSInfo
+ * @library /test/lib
+ * @build jdk.test.lib.Platform
  * @run main bug6416920
  */
 
 import javax.swing.plaf.basic.BasicTabbedPaneUI;
 import javax.swing.JTabbedPane;
 import javax.swing.SwingConstants;
 import java.awt.Rectangle;
 import java.awt.Insets;
-import jdk.testlibrary.OSInfo;
+
+import jdk.test.lib.Platform;
 
 public class bug6416920 extends BasicTabbedPaneUI {
     public AccessibleTabbedPaneLayout layout = new AccessibleTabbedPaneLayout();
 
     public static void main(String[] args) {
 
-        if(OSInfo.getOSType() != OSInfo.OSType.WINDOWS){
+        if (!Platform.isWindows()) {
             return;
         }
 
         bug6416920 test = new bug6416920();
         test.layout.padSelectedTab(SwingConstants.TOP, 0);
< prev index next >