Skip to content
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

8225122: Test AncestorResized.java fails when Windows desktop is scaled. #5711

Closed
wants to merge 2 commits into from

Conversation

mrserb
Copy link
Member

@mrserb mrserb commented Sep 27, 2021

This test depends on the next windows UI performance option:
“Show window contents while dragging”, see https://answers.microsoft.com/en-us/windows/forum/all/in-windows-7-how-do-i-show-window-contents-while/18e3aee2-bcc7-4005-a45d-c5613cf6eb3c

In the default configuration, the windows may decide that the system is slow and this option should be disabled. I have found that this usually happens in the virtual environment.

When that option is disabled the resize events have come when the user completes the resize, before that the only border "rectangle" is moved.

This fix changes the test to release the mouse and complete the resize, and only after that checks the result.

Also, some old machinery is removed.


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed

Issue

  • JDK-8225122: Test AncestorResized.java fails when Windows desktop is scaled.

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/5711/head:pull/5711
$ git checkout pull/5711

Update a local copy of the PR:
$ git checkout pull/5711
$ git pull https://git.openjdk.java.net/jdk pull/5711/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 5711

View PR using the GUI difftool:
$ git pr show -t 5711

Using diff file

Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/5711.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Sep 27, 2021

👋 Welcome back serb! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Sep 27, 2021

@mrserb The following label will be automatically applied to this pull request:

  • client

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.

@openjdk openjdk bot added the client client-libs-dev@openjdk.org label Sep 27, 2021
@@ -112,177 +104,12 @@ private static void init()
// ... and start resizing
robot.mousePress( InputEvent.BUTTON1_MASK );
robot.mouseMove(bounds.x + bounds.width + 20, bounds.y + bounds.height + 15);
Util.waitForIdle(robot);
robot.mouseRelease(InputEvent.BUTTON1_MASK);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the actual change, mouseRelease is moved from the end of the test to the line above.

@mrserb mrserb marked this pull request as ready for review September 30, 2021 22:30
@openjdk openjdk bot added the rfr Pull request is ready for review label Sep 30, 2021
@mlbridge
Copy link

mlbridge bot commented Sep 30, 2021

Webrevs

@bridgekeeper
Copy link

bridgekeeper bot commented Oct 29, 2021

@mrserb 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 add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@mrserb
Copy link
Member Author

mrserb commented Oct 29, 2021

Does anybody have any other suggestions?

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 26, 2021

@mrserb 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 add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@mrserb
Copy link
Member Author

mrserb commented Dec 1, 2021

Any volunteers?

@bridgekeeper
Copy link

bridgekeeper bot commented Dec 29, 2021

@mrserb 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 add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@mrserb
Copy link
Member Author

mrserb commented Jan 3, 2022

Any volunteers?

@@ -61,8 +54,7 @@ public void ancestorResized(HierarchyEvent ce) {
}
}

private static void init()
{
public static void main(String[] args) throws Exception {
Frame frame;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a big fan of the split declaration and initialization of all the variables but that existed before the fix and it is purely cosmetic. Other than that looks good.

@openjdk
Copy link

openjdk bot commented Jan 4, 2022

@mrserb 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:

8225122: Test AncestorResized.java fails when Windows desktop is scaled.

Reviewed-by: kizune, aivanov

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 no new commits pushed to the master branch. If another commit should be pushed before you perform the /integrate command, your PR will be automatically rebased. If you prefer to avoid any potential automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Jan 4, 2022
@mrserb
Copy link
Member Author

mrserb commented Jan 8, 2022

/integrate

@openjdk
Copy link

openjdk bot commented Jan 8, 2022

Going to push as commit 77757ba.
Since your change was applied there has been 1 commit pushed to the master branch:

  • f203723: 8279337: The MToolkit is still referenced in a few places

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Jan 8, 2022
@openjdk openjdk bot closed this Jan 8, 2022
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Jan 8, 2022
@openjdk
Copy link

openjdk bot commented Jan 8, 2022

@mrserb Pushed as commit 77757ba.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@mrserb mrserb deleted the JDK-8225122 branch January 8, 2022 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client client-libs-dev@openjdk.org integrated Pull request has been integrated
3 participants