Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Stocker2013-10-19 23:45:20 +0000
committerMatthias Sohn2013-10-22 13:38:16 +0000
commit448b9ac17151d750e0389b41c20f6800fc568406 (patch)
treebbfe7f3db98729e1fc07a3e6da76441b1de382c4 /org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history
parent85233a1cb5f44a912c0a8f21a939d2c62d5c86a6 (diff)
downloadegit-448b9ac17151d750e0389b41c20f6800fc568406.tar.gz
egit-448b9ac17151d750e0389b41c20f6800fc568406.tar.xz
egit-448b9ac17151d750e0389b41c20f6800fc568406.zip
Make tests with branch selection dialog also work with styled labels
With Ief9fe882779b321c6b03d240e9d4e0cc8412ed8c, the branch selection dialog now shows commit details in branch labels like the repo view. This change makes the tests also work when this is enabled. Change-Id: Iefa32154c97f199c92cdb2fc1fbde9506482c13c Signed-off-by: Robin Stocker <robin@nibor.org>
Diffstat (limited to 'org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java
index bc79c7ce59..3d0c046a46 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/test/history/HistoryViewTest.java
@@ -232,17 +232,16 @@ public class HistoryViewTest extends LocalRepositoryTestCase {
*/
private SWTBotTable getHistoryViewTable(String... path) throws Exception {
SWTBotTree projectExplorerTree = TestUtil.getExplorerTree();
- TestUtil testUtil = new TestUtil();
SWTBotTreeItem explorerItem;
SWTBotTreeItem projectItem = getProjectItem(projectExplorerTree, path[0]);
if (path.length == 1)
explorerItem = projectItem;
else if (path.length == 2)
- explorerItem = testUtil.getChildNode(projectItem.expand(), path[1]);
+ explorerItem = TestUtil.getChildNode(projectItem.expand(), path[1]);
else {
- SWTBotTreeItem childItem = testUtil.getChildNode(
+ SWTBotTreeItem childItem = TestUtil.getChildNode(
projectItem.expand(), path[1]);
- explorerItem = testUtil.getChildNode(childItem.expand(), path[2]);
+ explorerItem = TestUtil.getChildNode(childItem.expand(), path[2]);
}
explorerItem.select();
ContextMenuHelper.clickContextMenuSync(projectExplorerTree, "Show In",

Back to the top