Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Kinzler2011-03-18 08:20:22 +0000
committerMathias Kinzler2011-03-18 08:20:22 +0000
commitd04c792be3e3c1907541c23a18361525a4770c0b (patch)
tree26388ccbb4bab543eb3091f4e1c1b411b441ab6b /org.eclipse.egit.ui.test/src/org/eclipse
parentdc6128b29ad3c72da923ebfbccd8bbdebe37c6fb (diff)
downloadegit-d04c792be3e3c1907541c23a18361525a4770c0b.tar.gz
egit-d04c792be3e3c1907541c23a18361525a4770c0b.tar.xz
egit-d04c792be3e3c1907541c23a18361525a4770c0b.zip
Change-Id: Id6814f8fcd2ff7b657b00c8f0b9112de0b59461a Signed-off-by: Mathias Kinzler <mathias.kinzler@sap.com>
Diffstat (limited to 'org.eclipse.egit.ui.test/src/org/eclipse')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/BranchAndResetActionTest.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/BranchAndResetActionTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/BranchAndResetActionTest.java
index 41a4a0ef58..2fa1954445 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/BranchAndResetActionTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/team/actions/BranchAndResetActionTest.java
@@ -313,6 +313,9 @@ public class BranchAndResetActionTest extends LocalRepositoryTestCase {
assertFalse(branchNameDialog.bot().button(IDialogConstants.FINISH_LABEL)
.isEnabled());
branchName.setText("NewBranch");
+ // suppress checkout so that the dialog remains open
+ branchNameDialog.bot().checkBox(UIText.CreateBranchPage_CheckoutButton)
+ .deselect();
branchNameDialog.bot().button(IDialogConstants.FINISH_LABEL).click();
assertEquals("New Branch should be selected", "NewBranch", bot.tree()
@@ -359,6 +362,9 @@ public class BranchAndResetActionTest extends LocalRepositoryTestCase {
assertFalse(branchNameDialog.bot().button(IDialogConstants.FINISH_LABEL)
.isEnabled());
branchName.setText("Unrenamed");
+ // suppress checkout so that the dialog remains open
+ branchNameDialog.bot().checkBox(UIText.CreateBranchPage_CheckoutButton)
+ .deselect();
branchNameDialog.bot().button(IDialogConstants.FINISH_LABEL).click();
assertEquals("New Branch should be selected", "Unrenamed", bot.tree()

Back to the top