RFR: 8225777: java/awt/Mixing/MixingOnDialog.java fails on Ubuntu [v2]
Alexander Zvegintsev
azvegint at openjdk.java.net
Wed Oct 20 16:46:31 UTC 2021
On Wed, 20 Oct 2021 12:52:55 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> Alexander Zvegintsev has updated the pull request incrementally with two additional commits since the last revision:
>>
>> - d.setLocationRelativeTo(null);
>> - increase auto delay
>
> 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
Yes, `setUndecorated` is one of possible solutions, however it looks equal to changing location.
Updated the delay and dialog's location.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6040
More information about the client-libs-dev
mailing list