< prev index next >

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

Print this page

        

*** 64,73 **** --- 64,77 ---- 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,116 **** robot.waitForIdle(); for (int i = 0; i < buttonTypes.length; i++) { actionPerformed = false; robot.click(buttonTypes[i]); ! robot.waitForIdle(2000); if (isMacOS && actionPerformed && i == 2) { }else if (isMacOS && i == 2) { throw new RuntimeException("FAIL: ActionEvent NOT triggered when " + --- 110,120 ---- robot.waitForIdle(); for (int i = 0; i < buttonTypes.length; i++) { actionPerformed = false; robot.click(buttonTypes[i]); ! robot.waitForIdle(6000); if (isMacOS && actionPerformed && i == 2) { }else if (isMacOS && i == 2) { throw new RuntimeException("FAIL: ActionEvent NOT triggered when " +
*** 153,163 **** if (i == 0) { if (! actionPerformed) { synchronized (actionLock) { try { ! actionLock.wait(3000); } catch (Exception e) { } } } if (! actionPerformed) --- 157,167 ---- if (i == 0) { if (! actionPerformed) { synchronized (actionLock) { try { ! actionLock.wait(6000); } catch (Exception e) { } } } if (! actionPerformed)
< prev index next >