-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick #25971
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
base: master
Are you sure you want to change the base?
Conversation
|
👋 Welcome back kboulanou! A progress list of the required criteria for merging this PR into |
|
@kboulanou This change is no longer ready for integration - check the PR body for details. |
|
@kboulanou 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. |
|
What do you mean by "focus workaround trick" and " minimizing area in the window control"? Are you seeing click is happening on the minimize button on the frame and frame getting iconified? |
|
In Windows machines, the click lands on the reduce control of the window, and this causes the windows to be iconified and the test fails. I have tested with undecorated frames, but the test continues to fail. The test needs to click on the middle of the Windows title bar (Outside of the controls) to pass. I will set the frames (The background undecorated frame, and the heavyweight component frames) on center as you have suggested. |
WHich test in particular? or is it all tests have this behavior?
I tried JMenuBarOverlapping.java but I dont see any click on title bar..The cursor in on top-left of "Test Menu" menu.. |
|
Minor: could you please update the copyright years? |
|
@prsadhuk I have reviewed the code again and I can point out where we do have the workaround click. It can be found in class SimpleOverlappingTestBase, in method performTest. Following is an excerpt of the source code: I will use requestFocus as you have suggested and see if I get tests to pass. |
|
I will update copyright years for changed classes. |
|
@prsadhuk after applying your suggested change, I can see that it has fixed the issue for most of the tests but still the following tests didn't pass on Windows compared with the original fix of changing frame width : java/awt/Mixing/AWT_Mixing/JProgressBarInGlassPaneOverlapping.java I will check why these tests had failed. |
|
@kboulanou Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information. |
|
@kboulanou |
test/jdk/java/awt/Mixing/AWT_Mixing/GlassPaneOverlappingTestBase.java
Outdated
Show resolved
Hide resolved
test/jdk/java/awt/Mixing/AWT_Mixing/GlassPaneOverlappingTestBase.java
Outdated
Show resolved
Hide resolved
test/jdk/java/awt/Mixing/AWT_Mixing/GlassPaneOverlappingTestBase.java
Outdated
Show resolved
Hide resolved
test/jdk/java/awt/Mixing/AWT_Mixing/GlassPaneOverlappingTestBase.java
Outdated
Show resolved
Hide resolved
test/jdk/java/awt/Mixing/AWT_Mixing/GlassPaneOverlappingTestBase.java
Outdated
Show resolved
Hide resolved
test/jdk/java/awt/Mixing/AWT_Mixing/SimpleOverlappingTestBase.java
Outdated
Show resolved
Hide resolved
test/jdk/java/awt/Mixing/AWT_Mixing/SimpleOverlappingTestBase.java
Outdated
Show resolved
Hide resolved
…se.java Co-authored-by: Alexey Ivanov <alexey.ivanov@oracle.com>
…se.java Co-authored-by: Alexey Ivanov <alexey.ivanov@oracle.com>
…java Co-authored-by: Alexey Ivanov <alexey.ivanov@oracle.com>
…se.java Co-authored-by: Alexey Ivanov <alexey.ivanov@oracle.com>
test/jdk/java/awt/Mixing/AWT_Mixing/GlassPaneOverlappingTestBase.java
Outdated
Show resolved
Hide resolved
test/jdk/java/awt/Mixing/AWT_Mixing/GlassPaneOverlappingTestBase.java
Outdated
Show resolved
Hide resolved
test/jdk/java/awt/Mixing/AWT_Mixing/SimpleOverlappingTestBase.java
Outdated
Show resolved
Hide resolved
test/jdk/java/awt/Mixing/AWT_Mixing/SimpleOverlappingTestBase.java
Outdated
Show resolved
Hide resolved
|
|
||
| import test.java.awt.regtesthelpers.Util; | ||
|
|
||
| /** |
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 wonder if frameBorderCounter needs to run another java process to get the result. It should be possible to get the same result by running the code in FrameBorderCounter class directly in this JVM. Anyway, it's for another time.
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 not tried this before, I will check this some time and share my findings.
test/jdk/java/awt/Mixing/AWT_Mixing/SimpleOverlappingTestBase.java
Outdated
Show resolved
Hide resolved
test/jdk/java/awt/Mixing/AWT_Mixing/SimpleOverlappingTestBase.java
Outdated
Show resolved
Hide resolved
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.
Minor formatting and unneeded imports left.
test/jdk/java/awt/Mixing/AWT_Mixing/SimpleOverlappingTestBase.java
Outdated
Show resolved
Hide resolved
test/jdk/java/awt/Mixing/AWT_Mixing/SimpleOverlappingTestBase.java
Outdated
Show resolved
Hide resolved
test/jdk/java/awt/Mixing/AWT_Mixing/SimpleOverlappingTestBase.java
Outdated
Show resolved
Hide resolved
|
@kboulanou This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply issue a |
Many Mixing tests failed because the work around click lands on the minimizing area in the window control and causes the tests to fail.
This fix changes the width of base frames which allows most of tests to pass.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/25971/head:pull/25971$ git checkout pull/25971Update a local copy of the PR:
$ git checkout pull/25971$ git pull https://git.openjdk.org/jdk.git pull/25971/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 25971View PR using the GUI difftool:
$ git pr show -t 25971Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/25971.diff
Using Webrev
Link to Webrev Comment