[jbosstools-commits] JBoss Tools SVN: r44119 - trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Fri Sep 28 13:13:37 EDT 2012
Author: ldimaggio
Date: 2012-09-28 13:13:37 -0400 (Fri, 28 Sep 2012)
New Revision: 44119
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ConsoleView.java
Log:
Updated ConsoleView to deal with console switching failing on Mac OS X - JBQA-7083
Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ConsoleView.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ConsoleView.java 2012-09-28 16:44:55 UTC (rev 44118)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/view/ConsoleView.java 2012-09-28 17:13:37 UTC (rev 44119)
@@ -20,6 +20,7 @@
import org.eclipse.swtbot.swt.finder.widgets.SWTBotToolbarDropDownButton;
import org.hamcrest.core.IsAnything;
import org.jboss.tools.ui.bot.ext.SWTBotFactory;
+import org.jboss.tools.ui.bot.ext.SWTJBTExt;
import org.jboss.tools.ui.bot.ext.gen.ActionItem.View.GeneralConsole;
import org.jboss.tools.ui.bot.ext.types.IDELabel;
@@ -96,8 +97,15 @@
*/
for (SWTBotToolbarButton button : SWTBotFactory.getConsole().getToolbarButtons()){
if (button.isEnabled() && IDELabel.ConsoleView.BUTTON_DISPLAY_SELECTED_CONSOLE_TOOLTIP.equals(button.getToolTipText())){
+
+ /* JBQA-7083 - needed to have console switch on Mac OS X */
+ if (SWTJBTExt.isRunningOnMacOs()) {
button.click(); // To switch the console
+ }
+ else {
button.click(); // To switch the console
+ button.click(); // To switch the console
+ }
return true;
}
}
More information about the jbosstools-commits
mailing list