Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Hungershausen2018-02-20 08:24:25 -0500
committerThomas Wolf2018-02-27 01:30:21 -0500
commite89420abccdf6b7fe8ad2ef7a8277af4826f5b49 (patch)
tree405b444161850dbe8d65bd117010d8555d2863e0 /org.eclipse.egit.ui.test/src/org/eclipse/egit
parentab8291244ab9478bfecec79e03b2e83b34fe0dd9 (diff)
downloadegit-e89420abccdf6b7fe8ad2ef7a8277af4826f5b49.tar.gz
egit-e89420abccdf6b7fe8ad2ef7a8277af4826f5b49.tar.xz
egit-e89420abccdf6b7fe8ad2ef7a8277af4826f5b49.zip
Delete Repository dialog: use "Delete" instead of "OK" for button
Bug: 531328 Change-Id: Id402627371e0f81ce24f70cc50c90b0b52b0721f Signed-off-by: Jonas Hungershausen <jonas.hungershausen@vogella.com>
Diffstat (limited to 'org.eclipse.egit.ui.test/src/org/eclipse/egit')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoDeletionTest.java13
1 files changed, 9 insertions, 4 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoDeletionTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoDeletionTest.java
index 35bbadea6..51acc7fae 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoDeletionTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/view/repositories/GitRepositoriesViewRepoDeletionTest.java
@@ -37,7 +37,6 @@ import org.eclipse.egit.ui.internal.RepositoryCacheRule;
import org.eclipse.egit.ui.internal.UIText;
import org.eclipse.egit.ui.test.ContextMenuHelper;
import org.eclipse.egit.ui.test.TestUtil;
-import org.eclipse.jface.dialogs.IDialogConstants;
import org.eclipse.jgit.api.SubmoduleAddCommand;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner;
@@ -92,7 +91,9 @@ public class GitRepositoriesViewRepoDeletionTest extends
.checkBox(
UIText.DeleteRepositoryConfirmDialog_DeleteWorkingDirectoryCheckbox)
.select();
- shell.bot().button(IDialogConstants.OK_LABEL).click();
+ shell.bot().button(
+ UIText.DeleteRepositoryConfirmDialog_DeleteRepositoryConfirmButton)
+ .click();
TestUtil.joinJobs(JobFamilies.REPOSITORY_DELETE);
refreshAndWait();
@@ -131,7 +132,9 @@ public class GitRepositoriesViewRepoDeletionTest extends
checkbox.deselect();
// Now "Remove project from workspace" is selected, but "Delete working
// tree" is not.
- shell.bot().button(IDialogConstants.OK_LABEL).click();
+ shell.bot().button(
+ UIText.DeleteRepositoryConfirmDialog_DeleteRepositoryConfirmButton)
+ .click();
TestUtil.joinJobs(JobFamilies.REPOSITORY_DELETE);
refreshAndWait();
@@ -315,7 +318,9 @@ public class GitRepositoriesViewRepoDeletionTest extends
.checkBox(
UIText.DeleteRepositoryConfirmDialog_DeleteWorkingDirectoryCheckbox)
.select();
- shell.bot().button(IDialogConstants.OK_LABEL).click();
+ shell.bot().button(
+ UIText.DeleteRepositoryConfirmDialog_DeleteRepositoryConfirmButton)
+ .click();
TestUtil.joinJobs(JobFamilies.REPOSITORY_DELETE);
refreshAndWait();

Back to the top