< 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,44 **** @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 @run main ScrollbarIntersectionTest */ import java.awt.*; import java.awt.event.*; - import jdk.testlibrary.OSInfo; public class ScrollbarIntersectionTest { private static void init() { --- 26,44 ---- @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 /test/lib ! @build jdk.test.lib.Platform @run main ScrollbarIntersectionTest */ import java.awt.*; import java.awt.event.*; + import jdk.test.lib.Platform; public class ScrollbarIntersectionTest { private static void init() {
*** 132,142 **** private static int sleepTime = 300000; public static void main( String args[] ) throws InterruptedException { ! if (OSInfo.getOSType() == OSInfo.OSType.MACOSX) { // On OS X, this area is commandeered by the system, // and frame would be wildly resized System.out.println("Not for OS X"); return; } --- 132,142 ---- private static int sleepTime = 300000; public static void main( String args[] ) throws InterruptedException { ! 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 >