<Swing Dev> <AWT Dev> [14] RFR JDK-8233696:[TESTBUG]Some jtreg tests fail when CAPS_LOCK is ON

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Thu Nov 7 20:57:21 UTC 2019


On 11/7/19 4:23 am, Jayathirth D V wrote:
> Solution : I tried many things like finding test cases where we might not be restoring the CAPS_LOCK state or using get/setLockingKeyState(). But they were not feasible solutions

Why this solution does not work?

> so I am modifying the test cases which are failing because of CAPS_LOCK state to have proper checks. More details are in the bug.

I am not sure that this is the right thing to do if the test enters some text in
the text field and expects the low case text, then the text field should not return uppercase.

Otherwise you need to check other combinations when the shift/cmd/ctrl were pressed by other test.

-- 
Best regards, Sergey.


More information about the swing-dev mailing list