<AWT Dev> RFR: 8227077: Test java/awt/Modal/ZOrderTest6271792/ZOrderTest.java fails
Pankaj Bansal
pbansal at openjdk.java.net
Mon Oct 12 20:35:27 UTC 2020
Test java/awt/Modal/ZOrderTest6271792/ZOrderTest.java fails on Ubuntu 19.04 and Ubuntu 20.04. The test always fail on
mach5 and locally.
Issue: The test create frames and then does robot mouse clicks on frame title. The frames are of less width and on some
systems, the robot clicks the minimize button on the frame while clicking the frame title. This results in test failure
in further steps. Fix: Increased the frames dimensions to remove this issue. Also, used variables to define the
dimension instead of using the dimension values for all the frames individually. Along with this change, the fix also
does lot of cleanup. For example, added proper robot delays and removed Thread.sleeps. Added autoDelay on Robot,
removed lot of code for test machinery and lot of unnecessary functions, disposed the frames at end. The test is moved
from closed to open repo, so looks like a new test. I have run mach5 job with multiple iterations. Link in the JBS.
-------------
Commit messages:
- JDK-8227077: Test java/awt/Modal/ZOrderTest6271792/ZOrderTest.java fails
Changes: https://git.openjdk.java.net/jdk/pull/617/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=617&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8227077
Stats: 122 lines in 1 file changed: 122 ins; 0 del; 0 mod
Patch: https://git.openjdk.java.net/jdk/pull/617.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/617/head:pull/617
PR: https://git.openjdk.java.net/jdk/pull/617
More information about the awt-dev
mailing list