-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8289547 : Update javax/swing/Popup/TaskbarPositionTest.java #13578
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
Conversation
|
👋 Welcome back Renjithkannath! A progress list of the required criteria for merging this PR into |
|
@Renjithkannath The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
|
|
@Renjithkannath 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 571 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. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@aivanov-jdk, @dmarkov20, @honkar-jdk) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
/integrate |
|
@Renjithkannath |
dmarkov20
left a comment
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.
The new version of the test fails for me on macOS because CTRL + DOWN key combination is reserved by the operating system. It is necessary to disable "Application windows" system key shortcut to execute the test without failure.
An interesting thing is that the old version of the test works fine even if "Application windows" system key shortcut is enabled.
I would suggest documenting (probably at testing.md/wiki page) that "Application windows" key shortcut should be disabled prior testing.
Yes, it's known. It is recommended to disable all system shortcuts for running client tests, see the requirements on the wiki, which may be unfeasible for a system one uses day-to-day.
It's because the old test didn't open that popup or didn't check its position, I can't remember for sure.
It is already documented per the comment above. Do you also suggest changing the key stroke to another combination? |
Ah, I see. The previous version didn't cover all cases. |
@aivanov-jdk @Renjithkannath I think the idea of changing the key combination would make it less confusing for someone testing it manually and to figure out that it fails because of Application Windows shortcut & then having to disable it. Or another option is to add a note in the test itself, probably in jtreg @summary tag or the test frame about having to disable the shortcut in Mac so that the tester is aware. |
|
@aivanov-jdk , you are right "the old test didn't open that popup and check its position" and similarly some other cases also missed and that was the reason for updating the test case. |
…o run the test case on MAC
|
Updated @summary of the test case, thank you @dmarkov20 and @honkar-jdk for your review and suggestion. Please let me know is that help. |
honkar-jdk
left a comment
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.
LGTM
| * @summary Tests the location of the heavy weight popup portion of JComboBox, | ||
| * JMenu and JPopupMenu. | ||
| * On MAC disable all system shortcuts before executing this test case. | ||
| * The test uses Ctrl+Down Arrow (↓) which is a system shortcut on macOS, |
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'm unsure if we're allowed using Unicode chars inside the tests. It shouldn't be a problem here because it's in a comment.
|
/integrate |
|
@Renjithkannath |
|
/sponsor |
|
Going to push as commit d73fc70.
Your commit was automatically rebased without conflicts. |
|
@aivanov-jdk @Renjithkannath Pushed as commit d73fc70. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Hi Reviewers,
Noticed this test case not verifying all the cases which is intended. Modified it for improving the coverage for 3 type of popups (menu, context menu and combobox).
Evaluating conditions:
For achieving this following areas are modified
Please review this
Regards,
Renjith.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/13578/head:pull/13578$ git checkout pull/13578Update a local copy of the PR:
$ git checkout pull/13578$ git pull https://git.openjdk.org/jdk.git pull/13578/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 13578View PR using the GUI difftool:
$ git pr show -t 13578Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/13578.diff
Webrev
Link to Webrev Comment