RFR: 8158801: [TEST_BUG] Mixing tests fail because of focus workaround trick [v25]
Khalid Boulanouare
duke at openjdk.org
Fri Aug 22 16:41:15 UTC 2025
On Fri, 22 Aug 2025 09:26:44 GMT, Khalid Boulanouare <duke at openjdk.org> wrote:
>> test/jdk/java/awt/Mixing/AWT_Mixing/JComboBoxOverlapping.java line 67:
>>
>>> 65: frame.getContentPane().setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS));
>>> 66: frame.setSize(200, 200);
>>> 67: frame.setLocationRelativeTo(null);
>>
>> Are we disposing this frame somewhere(it's applicable to all the test files)?
>
> @manukumarvs in the original test, frames are not disposed. I will include disposing frame after testing the heavyweight component.
It seems there are two types of testing, some use one frame (GlassPane) and others uses multiple frames. I have updated code to dispose of multiple frames. Currently testing my changes.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25971#discussion_r2294188592
More information about the client-libs-dev
mailing list