Author: yzhishko
Date: 2009-10-14 10:04:16 -0400 (Wed, 14 Oct 2009)
New Revision: 18081
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAutoTestCase.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/AlwaysHideSelectionBarWithoutPromptTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowSelectionTagBarTest.java
Log:
SWTBot test failures fix.
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAutoTestCase.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAutoTestCase.java 2009-10-14
12:40:05 UTC (rev 18080)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAutoTestCase.java 2009-10-14
14:04:16 UTC (rev 18081)
@@ -125,7 +125,7 @@
// openProgressStatus();
} catch (WidgetNotFoundException e) {
}
- } catch (WidgetNotFoundException e) {
+ } catch (Exception e) {
bot.button(0).click();
SWTBotTree innerTree = bot.tree();
delay();
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/AlwaysHideSelectionBarWithoutPromptTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/AlwaysHideSelectionBarWithoutPromptTest.java 2009-10-14
12:40:05 UTC (rev 18080)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/AlwaysHideSelectionBarWithoutPromptTest.java 2009-10-14
14:04:16 UTC (rev 18081)
@@ -32,7 +32,6 @@
//Test Hide Selection Bar button without confirm
- selectSelection();
selectPrompt();
bot.toolbarButtonWithTooltip(HID_SEL_BAR).click();
checkIsHide();
@@ -42,14 +41,13 @@
closePage();
openPage();
checkIsShow();
-
}
private void checkIsHide(){
- IndexOutOfBoundsException exception = null;
+ WidgetNotFoundException exception = null;
try {
- bot.toolbarButtonWithTooltip(HID_SEL_BAR,1);
- } catch (IndexOutOfBoundsException e) {
+ bot.toolbarButtonWithTooltip(HID_SEL_BAR);
+ } catch (WidgetNotFoundException e) {
exception = e;
}
assertNotNull(exception);
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowSelectionTagBarTest.java
===================================================================
---
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowSelectionTagBarTest.java 2009-10-14
12:40:05 UTC (rev 18080)
+++
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/ShowSelectionTagBarTest.java 2009-10-14
14:04:16 UTC (rev 18081)
@@ -35,7 +35,6 @@
bot.toolbarButtonWithTooltip(HID_SEL_BAR).click();
bot.shell("Confirm hide selection bar").activate();
bot.button("OK").click();
- checkIsShow();
checkIsHide();
//Test Show selection after reopen
@@ -54,10 +53,10 @@
}
private void checkIsHide(){
- IndexOutOfBoundsException exception = null;
+ WidgetNotFoundException exception = null;
try {
- bot.toolbarButtonWithTooltip(HID_SEL_BAR,1);
- } catch (IndexOutOfBoundsException e) {
+ bot.toolbarButtonWithTooltip(HID_SEL_BAR);
+ } catch (WidgetNotFoundException e) {
exception = e;
}
assertNotNull(exception);
Show replies by date