Update
This commit is contained in:
@@ -49,13 +49,10 @@ public final class WindowGeometrySmoke {
|
||||
JDialog dialog = new JDialog();
|
||||
dialog.setSize(240, 160);
|
||||
dialog.setVisible(true);
|
||||
dialog.setLocation(1300, 950);
|
||||
automatic[0] = dialog;
|
||||
});
|
||||
try {
|
||||
// Some window managers asynchronously reset the initial position
|
||||
// after setVisible(true). Allow native realization to settle first.
|
||||
Thread.sleep(300);
|
||||
SwingUtilities.invokeAndWait(() -> automatic[0].setLocation(1300, 950));
|
||||
verify(WorkplaceResizeBridge.isOutside(automatic[0].getBounds(), viewport), "automatic test starts offscreen");
|
||||
verify(WorkplaceResizeBridge.startRuntimeMonitor(960, 640, "rescue") == 1, "autonomous rescue monitor starts");
|
||||
boolean rescued = false;
|
||||
|
||||
Reference in New Issue
Block a user