<AWT Dev>  Review Request: 8214469 [macos] PIT: java/awt/Choice/ChoiceKeyEventReaction/ChoiceKeyEventReaction.java fails
Sergey.Bylokhov at oracle.com
Sat Jun 1 02:09:35 UTC 2019
Please review the fix for JDK 13.
This test failure on macOS was reported as a possible regression of JDK-6849922, but it is not strictly a regression.
Previously it is sometimes passed(because it checks the assertions too fast), and now it always fails as expects because we now properly check the assertion in the test.
The test has two components TextField and Choice. The Choice component is non-focusable but the test opens the popup by the mouse and tries to type something. On Windows, it is expected that the text will be typed to the textfield, but on Linux it is expected that this typing will be skipped(it was implemented this way to mimic the Motif toolkit). On macOS the text will be typed to the textfield. I can say that both behaviors are questionable but the difference in the implementation is not strictly specified, and the test just defends from the accidental change of these AWT components, so in the fix, I just align expectation on Windows and macOS.
Best regards, Sergey.
More information about the awt-dev