RFR: 8288415: java/awt/PopupMenu/PopupMenuLocation.java is unstable in MacOS machines [v2]

Manukumar V S mvs at openjdk.org
Fri Jan 6 07:21:12 UTC 2023


On Tue, 3 Jan 2023 16:30:43 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> test/jdk/java/awt/PopupMenu/PopupMenuLocation.java line 133:
>> 
>>> 131:         robot.mousePress(InputEvent.BUTTON3_DOWN_MASK);
>>> 132:         robot.mouseRelease(InputEvent.BUTTON3_DOWN_MASK);
>>> 133:         robot.waitForIdle();
>> 
>> When testing locally on my macOS machine, this waitForIdle seems to be the culprit for why this test takes much longer per iteration. Maybe worth looking into why?
>
> Yes, this `robot.waitForIdle` makes the test unbearably slow. Worth submitting a separate bug with the reproducer. At this point, the pop is shown on the screen and its first item is highlighted.
> 
> I replaced it with
> 
> robot.delay(200);

Replaced robot.waitForIdle with robot.delay(200). I will check the possibility of raising a new bug.

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

PR: https://git.openjdk.org/jdk/pull/10655



More information about the client-libs-dev mailing list