-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
JDK-8282046: Create a regression test for JDK-8000326 #7512
Conversation
👋 Welcome back smandalika! A progress list of the required criteria for merging this PR into |
Webrevs
|
@aivanov-jdk Can you please review this PR? |
This review is for migrating tests from a closed test suite to open. |
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.
You copied the test into the new folder but the old folder still remains. You have to remove it. We don't want two identical tests in different locations.
test/jdk/java/awt/Focus/8000326/SetFocusTraversalKeysEnabledTest.java
Outdated
Show resolved
Hide resolved
test/jdk/java/awt/Focus/8000326/SetFocusTraversalKeysEnabledTest.java
Outdated
Show resolved
Hide resolved
test/jdk/java/awt/Focus/8000326/SetFocusTraversalKeysEnabledTest.java
Outdated
Show resolved
Hide resolved
Does the test reproduce the problem described in JDK-8000326? The bug was resolved in 8-b78. So the test should fail when run with 8-b77. Could you please confirm? |
As indicated by the comment here in bug JDK-8000326, the fix in 8-b78 was made not in code but in the docs, to clarify that the failure in focus traversal from Menu Bar to the other components was due to the default false value set to jMenuBar's focusTraversalKeysEnabled and is as expected. The test is to ensure that with jMenuBar.setFocusTraversalKeysEnabled(true), <Line no 82 in Test> the focus traversal across the components of the the UI is successful. The test fails in jdk8-b77, jdk8-b78, as well as in latest JDK8u builds with jMenuBar.setFocusTraversalKeysEnabled(false) |
I have now deleted the duplicate file. |
If you know when the test was first introduced, please update the copyright year to include the year when the test was originally written. |
@srmandal 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 425 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) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
test/jdk/java/awt/Focus/8000326/SetFocusTraversalKeysEnabledTest.java
Outdated
Show resolved
Hide resolved
…st.java Added missing space after comma. Co-authored-by: Alexey Ivanov <70774172+aivanov-jdk@users.noreply.github.com>
/integrate |
@aivanov-jdk Can you please sponsor my changes? |
/sponsor |
Going to push as commit 97c7298.
Your commit was automatically rebased without conflicts. |
@aivanov-jdk @srmandal Pushed as commit 97c7298. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Create a regression test for CCC8000326
Issue is identified by JDK-8000326, which identifies that after focus moves into JMenuBar, whose focus traversal key is disabled by default, it never moves to other focusable component.
By default, pressing the Tab key does not transfer focus from a JMenuBar which is added to a container together with other Swing components, because the focusTraversalKeysEnabled property of JMenuBar is set to false. To resolve this, you should call the JMenuBar.setFocusTraversalKeysEnabled(true) method.
The test verifies focus traversal for the above described scenario.
This review is for migrating tests from a closed test suite to open.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/7512/head:pull/7512
$ git checkout pull/7512
Update a local copy of the PR:
$ git checkout pull/7512
$ git pull https://git.openjdk.java.net/jdk pull/7512/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 7512
View PR using the GUI difftool:
$ git pr show -t 7512
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/7512.diff