Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Hufmann2019-04-17 09:04:42 -0400
committerBernd Hufmann2019-06-18 21:15:08 -0400
commit127c3293fb1d8da7d1c68a48114160775a128faf (patch)
tree458cbba52897361d689104ddffe4ddbec8195287
parent4f7a3f2c82a91af3c37084989cc25ae80b3da4e0 (diff)
downloadorg.eclipse.tracecompass-127c3293fb1d8da7d1c68a48114160775a128faf.tar.gz
org.eclipse.tracecompass-127c3293fb1d8da7d1c68a48114160775a128faf.tar.xz
org.eclipse.tracecompass-127c3293fb1d8da7d1c68a48114160775a128faf.zip
timing.test: Make sure that editor is active before running test
With this, the trace is loaded and the editor is active when opening the Flame Chart view. This will make sure that the view is populated for the test. Change-Id: I287edf5aa9ba73e285c62482370ff555a6904893 Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com> Reviewed-on: https://git.eclipse.org/r/140759 Tested-by: CI Bot Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com> Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
-rw-r--r--lttng/org.eclipse.tracecompass.lttng2.ust.ui.swtbot.tests/src/org/eclipse/tracecompass/lttng2/ust/ui/swtbot/tests/FlameChartViewTest.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/lttng/org.eclipse.tracecompass.lttng2.ust.ui.swtbot.tests/src/org/eclipse/tracecompass/lttng2/ust/ui/swtbot/tests/FlameChartViewTest.java b/lttng/org.eclipse.tracecompass.lttng2.ust.ui.swtbot.tests/src/org/eclipse/tracecompass/lttng2/ust/ui/swtbot/tests/FlameChartViewTest.java
index 766484cc1b..f0fcfd7227 100644
--- a/lttng/org.eclipse.tracecompass.lttng2.ust.ui.swtbot.tests/src/org/eclipse/tracecompass/lttng2/ust/ui/swtbot/tests/FlameChartViewTest.java
+++ b/lttng/org.eclipse.tracecompass.lttng2.ust.ui.swtbot.tests/src/org/eclipse/tracecompass/lttng2/ust/ui/swtbot/tests/FlameChartViewTest.java
@@ -202,6 +202,7 @@ public class FlameChartViewTest {
final File file = new File(CtfTmfTestTraceUtils.getTrace(cygProfile).getPath());
CtfTmfTestTraceUtils.dispose(cygProfile);
SWTBotUtils.openTrace(PROJECT_NAME, file.getAbsolutePath(), UST_ID);
+ SWTBotUtils.activateEditor(sfBot, file.getName());
SWTBotUtils.openView(FlameChartView.ID);
WaitUtils.waitForJobs();
final SWTBotView viewBot = sfBot.viewById(FlameChartView.ID);

Back to the top