RFR: 8353549: Open source events tests batch2 [v2]

Alexander Zvegintsev azvegint at openjdk.org
Tue Apr 8 23:51:57 UTC 2025


On Tue, 8 Apr 2025 20:58:04 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:

>> test/jdk/java/awt/event/MouseEvent/DragMouseEventTest.java line 67:
>> 
>>> 65: 
>>> 66: public class DragMouseEventTest {
>>> 67:     private static ExtendedRobot robot;
>> 
>> This test fails for me on Windows 11 with the following stack trace:
>> 
>> 
>> java.lang.RuntimeException: 4096: Mouse drag or release was not received
>> mouseDraggedReceived false mouseReleasedReceived false
>> 	at DragMouseEventTest.testButtonDrag(DragMouseEventTest.java:260)
>> 	at DragMouseEventTest.testComponent(DragMouseEventTest.java:125)
>> 	at DragMouseEventTest.test(DragMouseEventTest.java:97)
>> 	at DragMouseEventTest.main(DragMouseEventTest.java:74)
>> 	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
>> 	at java.base/java.lang.reflect.Method.invoke(Method.java:565)
>> 	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
>
> It failed on my local since the screen's uiScale was set to 1.5
> 
> Good to run the test as  `* @run main/othervm -Dsun.java2d.uiScale=1 DragMouseEventTest`

Thanks for catching, updated.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24516#discussion_r2034176494


More information about the client-libs-dev mailing list