Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Baumgart2010-12-17 16:45:03 +0000
committerJens Baumgart2010-12-17 16:45:03 +0000
commit6ce2a41a35ea0502709f39fdfc9fd7dc86c369e4 (patch)
tree1d5135f7e6e18df0780a0fe2c864e559e2ab496f /org.eclipse.egit.ui.test
parent1bee4e72d64a4392ebd2f03af7a6a49e82f98758 (diff)
downloadegit-6ce2a41a35ea0502709f39fdfc9fd7dc86c369e4.tar.gz
egit-6ce2a41a35ea0502709f39fdfc9fd7dc86c369e4.tar.xz
egit-6ce2a41a35ea0502709f39fdfc9fd7dc86c369e4.zip
Speed up UI tests: do not wait for non existing welcome page
The welcome page only needs to be closed once. Currently each test class waits for time out of finding the welcome page. Change-Id: Ieb7f46d4dcece1abe2aa4e12986264bbf808bd7d Signed-off-by: Jens Baumgart <jens.baumgart@sap.com>
Diffstat (limited to 'org.eclipse.egit.ui.test')
-rw-r--r--org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/EGitTestCase.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/EGitTestCase.java b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/EGitTestCase.java
index 6eef85e220..dd24363bb4 100644
--- a/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/EGitTestCase.java
+++ b/org.eclipse.egit.ui.test/src/org/eclipse/egit/ui/common/EGitTestCase.java
@@ -28,11 +28,15 @@ public abstract class EGitTestCase {
protected static final SWTWorkbenchBot bot = new SWTWorkbenchBot();
protected static final TestUtil util = new TestUtil();
+ private static volatile boolean welcomePageClosed = false;
@BeforeClass
public static void closeWelcomePage() {
+ if (welcomePageClosed)
+ return;
try {
bot.viewByTitle("Welcome").close();
+ welcomePageClosed = true;
} catch (WidgetNotFoundException e) {
// somebody else probably closed it, lets not feel bad about it.
}

Back to the top