< prev index next >
test/jdk/java/awt/TextArea/ScrollbarIntersectionTest/ScrollbarIntersectionTest.java
Print this page
rev 51542 : 8210039: move OSInfo to top level testlibrary
Reviewed-by: duke
@@ -26,19 +26,19 @@
@key headful
@bug 6429174
@summary Tests that mouse click at the are of intersection of two
scrollbars for text area doesn't trigger any scrolling
@author artem.ananiev@sun.com: area=awt.text
- @library ../../../../lib/testlibrary
- @build jdk.testlibrary.OSInfo
+ @library /test/lib
+ @build jdk.test.lib.Platform
@run main ScrollbarIntersectionTest
*/
import java.awt.*;
import java.awt.event.*;
-import jdk.testlibrary.OSInfo;
+import jdk.test.lib.Platform;
public class ScrollbarIntersectionTest
{
private static void init()
{
@@ -132,11 +132,11 @@
private static int sleepTime = 300000;
public static void main( String args[] ) throws InterruptedException
{
- if (OSInfo.getOSType() == OSInfo.OSType.MACOSX) {
+ if (Platform.isOSX()) {
// On OS X, this area is commandeered by the system,
// and frame would be wildly resized
System.out.println("Not for OS X");
return;
}
< prev index next >