提交 c5a0805e 编写于 作者: P pchelko

8028485: [macosx] java/awt/Mouse/EnterExitEvents/FullscreenEnterEventTest.java fails

Reviewed-by: anthony, serb
上级 55e34dc4
......@@ -468,8 +468,6 @@ AWT_ASSERT_APPKIT_THREAD;
// TODO: create generic AWT assert
}
[AWTWindow synthesizeMouseEnteredExitedEventsForAllWindows];
NSRect frame = ConvertNSScreenRect(env, [self.nsWindow frame]);
static JNF_MEMBER_CACHE(jm_deliverMoveResizeEvent, jc_CPlatformWindow, "deliverMoveResizeEvent", "(IIIIZ)V");
......@@ -480,6 +478,8 @@ AWT_ASSERT_APPKIT_THREAD;
(jint)frame.size.height,
(jboolean)[self.nsWindow inLiveResize]);
(*env)->DeleteLocalRef(env, platformWindow);
[AWTWindow synthesizeMouseEnteredExitedEventsForAllWindows];
}
- (void)windowDidMove:(NSNotification *)notification {
......
......@@ -61,6 +61,12 @@ public class FullscreenEnterEventTest {
return;
}
//Move the mouse out, because it could interfere with the test.
Robot r = Util.createRobot();
Util.waitForIdle(r);
r.mouseMove(0, 0);
Util.waitForIdle(r);
SwingUtilities.invokeAndWait(new Runnable() {
@Override
public void run() {
......@@ -69,7 +75,6 @@ public class FullscreenEnterEventTest {
});
//Move the mouse away from the frame and check the View-base full screen mode
Robot r = Util.createRobot();
Util.waitForIdle(r);
r.mouseMove(500, 500);
Util.waitForIdle(r);
......@@ -92,6 +97,7 @@ public class FullscreenEnterEventTest {
});
//Test native full screen support
Util.waitForIdle(r);
Point fullScreenButtonPos = frame.getLocation();
fullScreenButtonPos.translate(frame.getWidth() - 10, 10);
r.mouseMove(fullScreenButtonPos.x, fullScreenButtonPos.y);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册