< prev index next >

test/java/awt/TrayIcon/TrayIconMouseTest/TrayIconMouseTest.java

Print this page

        

@@ -64,10 +64,14 @@
             System.out.println("SystemTray not supported on the platform under test. " +
                     "Marking the test passed");
         } else {
             if (System.getProperty("os.name").toLowerCase().startsWith("mac")) {
                 isMacOS = true;
+            } else if (SystemTrayIconHelper.isOel7()) {
+                System.out.println("OEL 7 doesn't support double click in " +
+                        "systray. Skipped");
+                return;
             }
             new TrayIconMouseTest().doTest();
         }
     }
 

@@ -106,11 +110,11 @@
         robot.waitForIdle();
 
         for (int i = 0; i < buttonTypes.length; i++) {
             actionPerformed = false;
             robot.click(buttonTypes[i]);
-            robot.waitForIdle(2000);
+            robot.waitForIdle(6000);
 
             if (isMacOS && actionPerformed && i == 2) {
 
             }else if (isMacOS && i == 2) {
                 throw new RuntimeException("FAIL: ActionEvent NOT triggered when " +

@@ -153,11 +157,11 @@
 
                 if (i == 0) {
                     if (! actionPerformed) {
                         synchronized (actionLock) {
                             try {
-                                actionLock.wait(3000);
+                                actionLock.wait(6000);
                             } catch (Exception e) {
                             }
                         }
                     }
                     if (! actionPerformed)
< prev index next >