Skip to content

Commit d92a7fb

Browse files
committed
Stop dealing with subclipse stats dialog
It's not in the target platform for years now so this patch simply reduces noise while trying to stabilize tests.
1 parent 91682b2 commit d92a7fb

File tree

4 files changed

+5
-17
lines changed
  • changelog/org.eclipse.linuxtools.changelog.ui.tests/src/org/eclipse/linuxtools/changelog/ui/tests/swtbot
  • perf/org.eclipse.linuxtools.perf.swtbot.tests/src/org/eclipse/linuxtools/internal/perf/swtbot/tests
  • profiling/org.eclipse.linuxtools.profiling.provider.tests/src/org/eclipse/linuxtools/profiling/provider/tests
  • systemtap/org.eclipse.linuxtools.systemtap.ui.ide.tests/src/org/eclipse/linuxtools/systemtap/ui/ide/test/swtbot

4 files changed

+5
-17
lines changed

Diff for: changelog/org.eclipse.linuxtools.changelog.ui.tests/src/org/eclipse/linuxtools/changelog/ui/tests/swtbot/AbstractSWTBotTest.java

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2014, 2019 Red Hat and others.
2+
* Copyright (c) 2014, 2024 Red Hat and others.
33
*
44
* This program and the accompanying materials are made
55
* available under the terms of the Eclipse Public License 2.0
@@ -27,15 +27,12 @@ public abstract class AbstractSWTBotTest {
2727
protected static SWTBotTree projectExplorerViewTree;
2828

2929
@BeforeClass
30-
public static void beforeClass() throws Exception {
30+
public static void beforeClass() {
3131
// delay click speed
3232
//System.setProperty("org.eclipse.swtbot.playback.delay", "200");
3333
bot = new SWTWorkbenchBot();
3434
try {
3535
bot.viewByTitle("Welcome").close();
36-
// hide Subclipse Usage stats popup if present/installed
37-
bot.shell("Subclipse Usage").activate();
38-
bot.button("Cancel").click();
3936
} catch (WidgetNotFoundException e) {
4037
// ignore
4138
}

Diff for: perf/org.eclipse.linuxtools.perf.swtbot.tests/src/org/eclipse/linuxtools/internal/perf/swtbot/tests/AbstractSWTBotTest.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2013, 2018 Red Hat Inc.
2+
* Copyright (c) 2013, 2024 Red Hat Inc.
33
*
44
* This program and the accompanying materials are made
55
* available under the terms of the Eclipse Public License 2.0
@@ -60,9 +60,6 @@ public static void setUpWorkbench() throws Exception {
6060
SWTWorkbenchBot bot = new SWTWorkbenchBot();
6161
try {
6262
bot.viewByTitle("Welcome").close();
63-
// hide Subclipse Usage stats popup if present/installed
64-
bot.shell("Subclipse Usage").activate();
65-
bot.button("Cancel").click();
6663
} catch (WidgetNotFoundException e) {
6764
// ignore
6865
}

Diff for: profiling/org.eclipse.linuxtools.profiling.provider.tests/src/org/eclipse/linuxtools/profiling/provider/tests/PreferencesTest.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2012, 2018 Red Hat, Inc.
2+
* Copyright (c) 2012, 2024 Red Hat, Inc.
33
*
44
* This program and the accompanying materials are made
55
* available under the terms of the Eclipse Public License 2.0
@@ -107,9 +107,6 @@ public static void setUpWorkbench() throws Exception {
107107
SWTWorkbenchBot bot = new SWTWorkbenchBot();
108108
try {
109109
bot.viewByTitle("Welcome").close(); //$NON-NLS-1$
110-
// hide Subclipse Usage stats popup if present/installed
111-
bot.shell("Subclipse Usage").activate(); //$NON-NLS-1$
112-
bot.button("Cancel").click(); //$NON-NLS-1$
113110
} catch (WidgetNotFoundException e) {
114111
// ignore
115112
}

Diff for: systemtap/org.eclipse.linuxtools.systemtap.ui.ide.tests/src/org/eclipse/linuxtools/systemtap/ui/ide/test/swtbot/TestCreateSystemtapScript.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2013, 2018 Red Hat.
2+
* Copyright (c) 2013, 2024 Red Hat.
33
*
44
* This program and the accompanying materials are made
55
* available under the terms of the Eclipse Public License 2.0
@@ -267,9 +267,6 @@ public static void beforeClass() {
267267

268268
try {
269269
bot.viewByTitle("Welcome").close();
270-
// hide Subclipse Usage stats popup if present/installed
271-
bot.shell("Subclipse Usage").activate();
272-
bot.button("Cancel").click();
273270
} catch (WidgetNotFoundException e) {
274271
//ignore
275272
e.printStackTrace();

0 commit comments

Comments
 (0)