This is a test stabilization changeset for intermittent failures in the CI for 
Wayland.
I made minimal changes where applicable. There was no goal to refactor all 
affected tests.

* `test/jdk/java/awt/Choice/PopupPosTest/PopupPosTest.java`
 Without the added delay, the `stateChanged` variable could be overwritten by a 
previous `mouseMoveAndPressOnChoice` call.
* `test/jdk/java/awt/Focus/ClearLwQueueBreakTest/ClearLwQueueBreakTest.java`
The test may still fail intermittently in the CI, but an additional delay after 
setVisible won't cause any problems / 
https://bugs.openjdk.org/browse/JDK-8198618
* `test/jdk/java/awt/Frame/FrameSetMinimumSizeTest.java` 
The test made many setSize calls within a single `invokeAndWait` block and 
immediately checked the sizes. This works on the X11 server, but the XWayland 
implementation appears to be different. The `ConfigureNotify` with the correct 
sizes arrives later, but the test doesn't wait for it. Therefore, it was 
refactored.
* 
test/jdk/java/awt/KeyboardFocusmanager/TypeAhead/ButtonActionKeyTest/ButtonActionKeyTest.java
The test may still fail intermittently in the CI, but an additional delay after 
`setVisible` won't cause any problems / 
https://bugs.openjdk.org/browse/JDK-8257529
* 
`test/jdk/java/awt/LightweightComponent/LightWeightTabFocus/LightWeightTabFocus.java`
mouse button was not released causing subsequent test failures.
* `test/jdk/java/awt/Modal/ToFront/DialogToFrontModeless1Test.java`
details are in the test's comment.
 
This doesn't solve all the intermittent test issues related to Wayland 
(sometimes not even on Wayland).
Some of the tests described in the bug report are no longer reproducible. I 
will file new issues for future failures.
I also tested that it does not break other platforms testing as well.

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

Commit messages:
 - init

Changes: https://git.openjdk.org/jdk/pull/28939/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28939&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8346154
  Stats: 90 lines in 6 files changed: 46 ins; 9 del; 35 mod
  Patch: https://git.openjdk.org/jdk/pull/28939.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28939/head:pull/28939

PR: https://git.openjdk.org/jdk/pull/28939

Reply via email to