<AWT Dev> RFR: 8259511: java/awt/Window/MainKeyWindowTest/TestMainKeyWindow.java failed with "RuntimeException: Test failed: 20 failure(s)"
Sergey Bylokhov
serb at openjdk.java.net
Sun Jan 17 09:29:55 UTC 2021
On Sun, 17 Jan 2021 09:22:25 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> This test failed on the system where the wrong resolution was used(too small). Looks like that resolution was set by one of the tests and was not reset back because of a misconfigured automatic system reboot. I have checked that the initial version of the test works fine on our "clean" systems. But would like to tweak the test anyway just in case.
test/jdk/java/awt/Window/MainKeyWindowTest/TestMainKeyWindow.java line 391:
> 389: mb.add(new Menu("Hello"));
> 390: frame.setMenuBar(mb);
> 391: frame.setBounds(400, 180, 300, 300);
When a small resolution(800x600) or similar is used, then the window manager moves this big window to the left/top but the test is expected the specific x/y coordinate.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2113
More information about the awt-dev
mailing list