Author: lzoubek(a)redhat.com
Date: 2010-11-09 04:03:59 -0500 (Tue, 09 Nov 2010)
New Revision: 26352
Modified:
trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/tutorial/TutorialTest.java
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotExt.java
Log:
JBIDE-5711 fixed incompatibilities between SWTBot 2.0.1 and bot extensions
Modified:
trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/tutorial/TutorialTest.java
===================================================================
---
trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/tutorial/TutorialTest.java 2010-11-09
07:46:50 UTC (rev 26351)
+++
trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/tutorial/TutorialTest.java 2010-11-09
09:03:59 UTC (rev 26352)
@@ -36,6 +36,7 @@
import org.eclipse.swtbot.swt.finder.matchers.WidgetOfType;
import org.eclipse.swtbot.swt.finder.results.Result;
import org.eclipse.swtbot.swt.finder.results.VoidResult;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotBrowser;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotMenu;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotStyledText;
@@ -331,7 +332,7 @@
gui.save();
util.waitForNonIgnoredJobs();
new SWTBotGefContextMenu(gui.getControl(), "Run on Server").click();
- SWTBotBrowserExt browser = bot.browser();
+ SWTBotBrowser browser = bot.browser();
bot.sleep(7500);
browser.refresh();
bot.sleep(5000);
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotExt.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotExt.java 2010-11-09
07:46:50 UTC (rev 26351)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTBotExt.java 2010-11-09
09:03:59 UTC (rev 26352)
@@ -115,17 +115,6 @@
}
}
- @SuppressWarnings("unchecked")
- public SWTBotBrowserExt browser() {
- try {
- List<Browser> bsrs = (List<Browser>)
widgets(widgetOfType(Browser.class));
- return new SWTBotBrowserExt(bsrs.get(0));
- } catch (WidgetNotFoundException ex) {
- throw new WidgetNotFoundException(
- "Could not find widget of type Browser", ex);
- }
- }
-
public SWTBotScaleExt scale() {
return scale(0);
}
Show replies by date