RFR: 8225777: java/awt/Mixing/MixingOnDialog.java fails on Ubuntu

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Wed Oct 20 12:56:13 UTC 2021


On Wed, 20 Oct 2021 12:05:57 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:

> Looks like the test started failing after increasing of window's title height in Ubuntu theme:
> 
> ![image](https://user-images.githubusercontent.com/77687766/138088503-f380bcb2-1ffc-4d58-b6b2-2efc56b7975c.png)
> So the click happens on windows title instead of the button.
> 
> For example, macOS has smaller window title height, which allows test to pass.
> <img src="https://user-images.githubusercontent.com/77687766/138088659-bd636518-c23c-4c5e-bf97-61035753c71a.png" width="50%" height="50%">
> 
> Fix moves buttons away from window title.
> ![image](https://user-images.githubusercontent.com/77687766/138088880-a9d1ec38-cde2-437e-80b9-5b7bdf73fd6b.png)
> 
> Testing is green.

test/jdk/java/awt/Mixing/MixingOnDialog.java line 71:

> 69:         // Overlap the buttons
> 70:         heavy.setBounds(130, 130, 200, 200);
> 71:         light.setBounds(110, 110, 50, 50);

Probably you can call setUndecorated instead of changing the coordinate to avoid the issue. Also, maybe move the dialog to centre of screen...Also, I see setAutoDelay(20) is too less, should be consistent with other test which is 100ms

-------------

PR: https://git.openjdk.java.net/jdk/pull/6040



More information about the client-libs-dev mailing list