changeset 7126:ada2f87fd6d8

RT-37016 [Monocle] No mouse release event sent outside a grabbed window
author Daniel Blaukopf <daniel.blaukopf@oracle.com>
date Sun, 25 May 2014 15:03:48 +0300
parents 03201923b37e
children 9425ba418764
files tests/system/src/test/java/com/sun/glass/ui/monocle/input/SimpleMouseTest.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/system/src/test/java/com/sun/glass/ui/monocle/input/SimpleMouseTest.java	Sun May 25 14:47:10 2014 +0300
+++ b/tests/system/src/test/java/com/sun/glass/ui/monocle/input/SimpleMouseTest.java	Sun May 25 15:03:48 2014 +0300
@@ -280,10 +280,10 @@
     }
 
     @Test
-    @Ignore("RT-37016")
     public void testGrab2() throws Exception {
         TestApplication.showInMiddleOfScreen();
         TestApplication.addMouseListeners();
+        Assume.assumeTrue(TestApplication.isMonocle());
         Rectangle2D r = TestApplication.getScreenBounds();
         final int width = (int) r.getWidth();
         final int height = (int) r.getHeight();
@@ -312,7 +312,6 @@
         ui.processLine("EV_KEY BTN_LEFT 0");
         ui.processLine("EV_SYN");
         TestLog.waitForLog("Mouse released: %d, %d", x3, y3);
-        TestLog.waitForLog("Mouse clicked: %d, %d", x3, y3);
     }
 
 }