-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main #18205
8327838: Convert java/awt/FileDialog/MultipleMode/MultipleMode.html applet test to main #18205
Conversation
…plet test to main
👋 Welcome back azvegint! A progress list of the required criteria for merging this PR into |
Webrevs
|
frame.add(panel, BorderLayout.NORTH); | ||
frame.add(sysout, BorderLayout.CENTER); | ||
|
||
frame.pack(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Frame size is too big and going out of the screen, might fix a size here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't fit on the screen of my VM either.
One way to resolve this problem is to add
.position(PassFailJFrame.Position.TOP_LEFT_CORNER)
to PassFailJFrame
builder as there's no easy way to move the instruction frame to the left so that both frames fit on the screen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now its fine on my screen. But its not in center, but top. Does it differ for windows and linux?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not in the center, because in the latest commit I added .position(PassFailJFrame.Position.TOP_LEFT_CORNER)
, as Alexey suggested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have 1920×1200 with 150%. This is why it doesn't fit. The second frame overlapped instructions a bit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be 1280x800 user pixels ?
These days tests should be able to assume that there are 1920x1080 user-space pixels on the screen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Yet I left a couple of suggestions.
sysout.append("FILES:\n"); | ||
for (File f : d.getFiles()) { | ||
sysout.append(" %s\n".formatted(f)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you like you can replace the for-loop with functional-style stream:
sysout.append("FILES:\n"); | |
for (File f : d.getFiles()) { | |
sysout.append(" %s\n".formatted(f)); | |
} | |
sysout.append("FILES:\n"); | |
sysout.append(Arrays.stream(d.getFiles()) | |
.map(" %s\n"::formatted) | |
.collect(Collectors.joining())); |
@azvegint This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 17 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
/integrate |
Going to push as commit 30249c4.
Your commit was automatically rebased without conflicts. |
frame.add(panel, BorderLayout.NORTH); | ||
frame.add(sysout, BorderLayout.CENTER); | ||
|
||
frame.pack(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be 1280x800 user pixels ?
These days tests should be able to assume that there are 1920x1080 user-space pixels on the screen.
.awaitAndCheck(); | ||
} | ||
|
||
private static Frame init() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
init() -> createMultiModeFrame() ?
The test is converted to main.
Tested on Linux, Macos and Windows.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/18205/head:pull/18205
$ git checkout pull/18205
Update a local copy of the PR:
$ git checkout pull/18205
$ git pull https://git.openjdk.org/jdk.git pull/18205/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 18205
View PR using the GUI difftool:
$ git pr show -t 18205
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/18205.diff
Webrev
Link to Webrev Comment