[jbosstools-commits] JBoss Tools SVN: r22821 - trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Tue Jun 15 11:29:05 EDT 2010
Author: vpakan at redhat.com
Date: 2010-06-15 11:29:05 -0400 (Tue, 15 Jun 2010)
New Revision: 22821
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/AlwaysHideSelectionBarWithoutPromptTest.java
Log:
Added test if Confirmation Dialog is displayed when hiding Selection Bar
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 2010-06-15 14:23:08 UTC (rev 22820)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/preferences/AlwaysHideSelectionBarWithoutPromptTest.java 2010-06-15 15:29:05 UTC (rev 22821)
@@ -1,6 +1,7 @@
package org.jboss.tools.vpe.ui.bot.test.editor.preferences;
import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
+import org.jboss.tools.ui.bot.ext.types.IDELabel;
public class AlwaysHideSelectionBarWithoutPromptTest extends PreferencesTestCase{
@@ -41,6 +42,14 @@
closePage();
openPage();
checkIsShow();
+
+ //Test Hide Selection Bar button with confirm
+
+ selectPrompt();
+ bot.toolbarButtonWithTooltip(HID_SEL_BAR).click();
+ bot.shell("Confirm hide selection bar").activate();
+ bot.button(IDELabel.Button.OK).click();
+ checkIsHide();
}
private void checkIsHide(){
More information about the jbosstools-commits
mailing list