< prev index next >
test/jdk/java/awt/Multiscreen/MultiScreenInsetsTest/MultiScreenInsetsTest.java
Print this page
rev 51542 : 8210039: move OSInfo to top level testlibrary
Reviewed-by: duke
@@ -26,30 +26,30 @@
@key headful
@bug 8020443
@summary Frame is not created on the specified GraphicsDevice with two
monitors
@author Oleg Pekhovskiy
- @library ../../../../lib/testlibrary
- @build jdk.testlibrary.OSInfo
+ @library /test/lib
+ @build jdk.test.lib.Platform
@run main MultiScreenInsetsTest
*/
import java.awt.Frame;
import java.awt.GraphicsConfiguration;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Insets;
import java.awt.Rectangle;
import java.awt.Toolkit;
-import jdk.testlibrary.OSInfo;
+
+import jdk.test.lib.Platform;
public class MultiScreenInsetsTest {
private static final int SIZE = 100;
public static void main(String[] args) throws InterruptedException {
- OSInfo.OSType type = OSInfo.getOSType();
- if (type != OSInfo.OSType.LINUX && type != OSInfo.OSType.SOLARIS) {
+ if (!Platform.isLinux() && !Platform.isSolaris()) {
System.out.println("This test is for Solaris and Linux only..." +
"skipping!");
return;
}
< prev index next >