< prev index next >
test/jdk/java/awt/MenuBar/MenuBarSetFont/MenuBarSetFont.java
Print this page
rev 51542 : 8210039: move OSInfo to top level testlibrary
Reviewed-by: duke
@@ -31,20 +31,20 @@
import java.awt.Robot;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.InputEvent;
-import jdk.testlibrary.OSInfo;
+import jdk.test.lib.Platform;
/**
* @test
* @key headful
* @bug 6263470
* @summary Tries to change font of MenuBar. Test passes if the font has changed
* fails otherwise.
- * @library ../../../../lib/testlibrary
- * @build jdk.testlibrary.OSInfo
+ * @library /test/lib
+ * @build jdk.test.lib.Platform
* @author Vyacheslav.Baranov: area=menu
* @run main MenuBarSetFont
*/
public final class MenuBarSetFont {
@@ -66,11 +66,11 @@
frame.validate();
}
public static void main(final String[] args) throws Exception {
- if (OSInfo.getOSType() == OSInfo.OSType.MACOSX) {
+ if (Platform.isOSX()) {
System.err.println("This test is not for OS X. Menu.setFont() is not supported on OS X.");
return;
}
//Components initialization.
< prev index next >