8252679: Two windows specific FileDIalog tests may fail on some Windows_Server_2016_Standard

Reviewed-by: prr
This commit is contained in:
Sergey Bylokhov 2020-09-06 01:25:23 +00:00
parent d0f4366a85
commit 1262ae36af
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -22,6 +22,7 @@
*/
/* @test
@key headful
@bug 8003399
@summary JFileChooser gives wrong path to selected file when saving to Libraries folder on Windows 7
@author Semyon Sadetsky
@ -50,6 +51,9 @@ public class bug8003399 {
String path = file1.getPath();
if(path.startsWith("::{") &&
path.toLowerCase().endsWith(".library-ms")) {
System.err.println("file = " + file);
System.err.println("file1 = " + file1);
System.err.println("path = " + path);
throw new RuntimeException("Unconverted library link found");
}
}

View File

@ -22,6 +22,7 @@
*/
/* @test
@key headful
@bug 8017487 8167988
@summary filechooser in Windows-Libraries folder: columns are mixed up
@author Semyon Sadetsky