RFR: 8315986: javax/swing/JMenuItem/4654927/bug4654927.java: component must be showing on the screen to determine its location [v5]
Alexey Ivanov
aivanov at openjdk.org
Tue Nov 14 15:56:33 UTC 2023
On Tue, 14 Nov 2023 11:10:06 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> Test was run without waiting for UI to be made visible leading to IllegalComponentStateException.
>> Used robot.delay consistent with other headful tests to made the test wait after UI is created and shown.
>>
>> Test passed in several iterations in all platforms. Link in JBS
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>
> Optimize test
Looks good except for the minor comment.
test/jdk/javax/swing/JMenuItem/4654927/bug4654927.java line 79:
> 77: robot.delay(250);
> 78:
> 79: System.out.println("MenuItem LocationOnScreen " + menuItem.getLocationOnScreen());
Line 79 is redundant, it prints the same location that's printed on line 81.
-------------
Marked as reviewed by aivanov (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/15677#pullrequestreview-1730074554
PR Review Comment: https://git.openjdk.org/jdk/pull/15677#discussion_r1392817958
More information about the client-libs-dev
mailing list