lttng: Fix ControlFlowViewTest on Mac
authorMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Mon, 11 Jul 2016 23:30:08 +0000 (19:30 -0400)
committerMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Wed, 27 Jul 2016 18:49:37 +0000 (14:49 -0400)
Going to the top of a tree is Option-Up instead of Home. Use the new
SWTBotUtils method.

Change-Id: I77a5d88b84d529c6ae0bf3739ae5eed19438a974
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/77105
Reviewed-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Tested-by: Patrick Tasse <patrick.tasse@gmail.com>
lttng/org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests/src/org/eclipse/tracecompass/lttng2/kernel/ui/swtbot/tests/ControlFlowViewTest.java

index 62b81255a789a22b1fb7c78e552d0be86d136f20..46121f8f119cd1c54e824b127909e77792817dbb 100644 (file)
@@ -40,6 +40,7 @@ import org.eclipse.tracecompass.tmf.core.timestamp.TmfTimeRange;
 import org.eclipse.tracecompass.tmf.core.timestamp.TmfTimestamp;
 import org.eclipse.tracecompass.tmf.core.trace.TmfTraceManager;
 import org.eclipse.tracecompass.tmf.ui.swtbot.tests.shared.ConditionHelpers;
+import org.eclipse.tracecompass.tmf.ui.swtbot.tests.shared.SWTBotUtils;
 import org.eclipse.tracecompass.tmf.ui.views.timegraph.AbstractTimeGraphView;
 import org.eclipse.tracecompass.tmf.ui.widgets.timegraph.widgets.TimeGraphControl;
 import org.eclipse.ui.IWorkbenchPart;
@@ -131,8 +132,7 @@ public class ControlFlowViewTest extends KernelTestBase {
         timeGraphIsReadyCondition(new TmfTimeRange(START_TIME, START_TIME));
 
         /* select first item */
-        final SWTBotTree tree = fViewBot.bot().tree();
-        tree.pressShortcut(Keystrokes.HOME);
+        SWTBotUtils.pressShortcutGoToTreeTop(KEYBOARD);
         fViewBot.toolbarButton(SELECT_NEXT_PROCESS).click();
 
         /* set focus on time graph */
@@ -330,7 +330,7 @@ public class ControlFlowViewTest extends KernelTestBase {
 
         /* select first item */
         final SWTBotTree tree = fViewBot.bot().tree();
-        tree.pressShortcut(Keystrokes.HOME);
+        SWTBotUtils.pressShortcutGoToTreeTop(KEYBOARD);
         fViewBot.toolbarButton(SELECT_NEXT_PROCESS).click();
 
         /* set focus on time graph */
This page took 0.026446 seconds and 5 git commands to generate.