tmf: Add a more reliable way to get the active editor with SWTBot
authorMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Wed, 19 Aug 2015 20:01:16 +0000 (16:01 -0400)
committerMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Wed, 2 Sep 2015 18:18:52 +0000 (14:18 -0400)
commita345ad253a3c5de924340f16ec03d2c30ab64426
tree8095cbf6d536f83a4abe31a56d21208f19051036
parent37e1a265528e60d4b39070e1a79b35f24494a12a
tmf: Add a more reliable way to get the active editor with SWTBot

StandardImportGzipTraceTest assumes that after double-clicking on the
trace, there will be an active editor right away. Instead, we can
have a method that waits until there is an active editor.

I've seen the failure:
WidgetNotFoundException: There is no active editor
here:
http://eclip.se/5l

Change-Id: I41dd5c7c4f30f789dabab813eb8bcbb81fdcb48e
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/54154
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/shared/org/eclipse/tracecompass/tmf/ui/swtbot/tests/shared/SWTBotUtils.java
tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/viewers/events/ColorsViewTest.java
tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/viewers/events/FilterViewerTest.java
tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/viewers/events/TmfAlignTimeAxisTest.java
tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/wizards/StandardImportGzipTraceTest.java
This page took 0.031702 seconds and 5 git commands to generate.