< prev index next >
test/jdk/java/awt/FileDialog/8017487/bug8017487.java
Print this page
rev 51542 : 8210039: move OSInfo to top level testlibrary
Reviewed-by: duke
*** 24,51 ****
/* @test
@bug 8017487 8167988
@summary filechooser in Windows-Libraries folder: columns are mixed up
@author Semyon Sadetsky
@modules java.desktop/sun.awt.shell
! @library /lib/testlibrary
! @build jdk.testlibrary.OSInfo
@run main bug8017487
*/
! import jdk.testlibrary.OSInfo;
import sun.awt.shell.ShellFolder;
import sun.awt.shell.ShellFolderColumnInfo;
import javax.swing.filechooser.FileSystemView;
import java.io.File;
public class bug8017487
{
public static void main(String[] p_args) throws Exception {
! if (OSInfo.getOSType() == OSInfo.OSType.WINDOWS &&
! OSInfo.getWindowsVersion().compareTo(OSInfo.WINDOWS_VISTA) > 0 ) {
test();
System.out.println("ok");
}
}
--- 24,52 ----
/* @test
@bug 8017487 8167988
@summary filechooser in Windows-Libraries folder: columns are mixed up
@author Semyon Sadetsky
@modules java.desktop/sun.awt.shell
! @library /test/lib
! @build jdk.test.lib.OSVersion jdk.test.lib.Platform
@run main bug8017487
*/
! import jdk.test.lib.Platform;
! import jdk.test.lib.OSVersion;
import sun.awt.shell.ShellFolder;
import sun.awt.shell.ShellFolderColumnInfo;
import javax.swing.filechooser.FileSystemView;
import java.io.File;
public class bug8017487
{
public static void main(String[] p_args) throws Exception {
! if (Platform.isWindows() &&
! OSVersion.current().compareTo(OSVersion.WINDOWS_VISTA) > 0 ) {
test();
System.out.println("ok");
}
}
< prev index next >