8153276: [TEST_BUG] javax/swing/JFileChooser/ShellFolderQueries/ShellFolderQueriesTest.java
Reviewed-by: alexsch, yan
This commit is contained in:
parent
40685b4271
commit
dc0aed8917
@ -30,7 +30,6 @@
|
||||
* @run main ShellFolderQueriesTest
|
||||
*/
|
||||
|
||||
import sun.awt.OSInfo;
|
||||
|
||||
import javax.swing.filechooser.FileSystemView;
|
||||
import java.io.File;
|
||||
@ -50,7 +49,8 @@ public class ShellFolderQueriesTest {
|
||||
static String scriptEnd = "\"\noShellLink.WindowStyle = 1\noShellLink.Save";
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
if(OSInfo.getOSType() == OSInfo.OSType.WINDOWS) {
|
||||
if(System.getProperty("os.name").toLowerCase().contains("windows")) {
|
||||
System.out.println("Windows detected: will run shortcut test");
|
||||
testGet();
|
||||
testLink();
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user