[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-2d-dev
Subject: Re: RFR: 8225122: Test AncestorResized.java fails when Windows desktop is scaled.
From: Sergey Bylokhov <serb () openjdk ! java ! net>
Date: 2021-09-30 22:36:50
Message-ID: hIEcJzrC1woTLGcUAc715JgVii_aZ17A4VVS3t3mcEU=.03e95295-f66c-4b27-aa7f-aac4025deaef () github ! com
[Download RAW message or body]
On Mon, 27 Sep 2021 03:33:52 GMT, Sergey Bylokhov <serb@openjdk.org> wrote:
> 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.
test/jdk/java/awt/event/HierarchyEvent/AncestorResized/AncestorResized.java line 107:
> 105: robot.mousePress( InputEvent.BUTTON1_MASK );
> 106: robot.mouseMove(bounds.x + bounds.width + 20, bounds.y + bounds.height \
> + 15);
> 107: robot.mouseRelease(InputEvent.BUTTON1_MASK);
This is the actual change, mouseRelease is moved from the end of the test to the line \
above.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5711
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic