-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8342602: Remove JButton/PressedButtonRightClickTest test #21587
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
8342602: Remove JButton/PressedButtonRightClickTest test #21587
Conversation
👋 Welcome back aivanov! A progress list of the required criteria for merging this PR into |
@aivanov-jdk 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 254 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 |
@aivanov-jdk 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
|
The btw it is unclear why the bug4490179 test is not mention in the https://bugs.openjdk.org/browse/JDK-8049069 |
The description of JDK-8049069:
This matches the description of JDK-4490179:
Indeed, if I add Even though the tests verify slightly different conditions, the effect is the same. The button must remain pressed when right mouse button is pressed and released.
I do not know. I assume the reporter of JDK-8049069 didn't know a test had already existed. According the first comment, “Detected by test: Swing_JButton/Automated/RButtonEventOP.” It looks the bug was found by SQE and a test in the SQE test suite. |
But it's still a different condition, and removing the test will reduce coverage. |
No, it will not reduce the coverage. If Both tests verify the same end result: no action event is triggered if mouse button 3 is pressed and released while mouse button 1 is pressed. |
Looking at both of these tests, it does look like the coverage will remain the same. Looks like there's just two ways to test the same functionality, and the original issue reported for each bug is virtually identical. If removing one test is actually problematic, you could edit the remaining test to check for both Removing the suggested test seems right to me. The additional test was probably just created due to not knowing the older test existed as mentioned. |
/integrate |
Going to push as commit 8647c00.
Your commit was automatically rebased without conflicts. |
@aivanov-jdk Pushed as commit 8647c00. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
The
javax/swing/JButton/PressedButtonRightClickTest.java
test that was added by JDK-8049069 fully duplicates an existing testjavax/swing/JButton/bug4490179.java
.To save time running tests, I'm removing
PressedButtonRightClickTest.java
.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/21587/head:pull/21587
$ git checkout pull/21587
Update a local copy of the PR:
$ git checkout pull/21587
$ git pull https://git.openjdk.org/jdk.git pull/21587/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 21587
View PR using the GUI difftool:
$ git pr show -t 21587
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/21587.diff
Using Webrev
Link to Webrev Comment