RFR: 8327972: Convert java/awt/FileDialog/SaveFileNameOverrideTest/SaveFileNameOverrideTest.html applet test to main
Alexander Zvegintsev
azvegint at openjdk.org
Tue Mar 12 12:42:14 UTC 2024
On Tue, 12 Mar 2024 12:34:57 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:
> The test is converted to main.
> Tested on Linux, Macos and Windows.
test/jdk/java/awt/FileDialog/SaveFileNameOverrideTest.java line 79:
> 77:
> 78: fd.setFile("input");
> 79: fd.setDirectory(new File(dirPath).getAbsolutePath());
Originally it was just the `dirPath` (== `.`).
However, a recently opened directory is opened when we pass `.` to `setDirectory` on WIndows.
To make the test consistent, the absolute path is used.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18231#discussion_r1521393330
More information about the client-libs-dev
mailing list