RFR: JDK-8328190 : Convert AWTPanelSmoothWheel.html applet test to main [v6]

Alexey Ivanov aivanov at openjdk.org
Thu Mar 21 15:07:23 UTC 2024


On Thu, 21 Mar 2024 01:13:50 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:

>> This test is converted to main using PassFailJFrame. It verifies wheel rotation value for high-res mouse on windows.
>> 
>> The test requires the updated PassFailJFrame's logArea() feature added in this PR https://github.com/openjdk/jdk/pull/18319
>
> Harshitha Onkar has updated the pull request incrementally with one additional commit since the last revision:
> 
>   added preciseWheelRotation logic & updated test

test/jdk/java/awt/event/MouseEvent/AWTPanelSmoothWheel.java line 99:

> 97:                 }
> 98:                 if (wheelEventCount >= 5 && hiResWheelCount == 0) {
> 99:                     PassFailJFrame.log("WARNING !!! You might not be using a high-res mouse.");

[`JOptionPane.showMessageDialog`](https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/JOptionPane.html#showMessageDialog(java.awt.Component,java.lang.Object,java.lang.String,int)) could be a better option to attract the tester's attention.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18312#discussion_r1534100269


More information about the client-libs-dev mailing list