RFR: 8282716: [macos] Enable javax/swing/JScrollPane/TestMouseWheelScroll.java on macos
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Sun Apr 10 06:14:15 UTC 2022
On Sun, 10 Apr 2022 04:53:38 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> > The scroll direction on macOS can be configured, can the test check what type of scroll is used on the current system and then use that to verify the old fix?
>
> I see "Scroll direction: Natural" check in mouse in SystemPreference which is by default checked, which causes down-wheel scroll to "move up" and up-wheel scroll to "move down" and if unchecked, then it causes reverse. But I could not find anyway to find in Java in Robot how to get scroll type of macos or for other platforms. If you are aware, let me know.. I guess we always test with default settings..
I have updated test to check wheel scroll type at runtime
-------------
PR: https://git.openjdk.java.net/jdk/pull/8123
More information about the client-libs-dev
mailing list