From: Marc-Andre Laperle Date: Mon, 11 Jul 2016 23:30:08 +0000 (-0400) Subject: lttng: Fix ControlFlowViewTest on Mac X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=ba2374d80e7660dad68e8fbdbffa2bcc9b2f90ff;p=deliverable%2Ftracecompass.git lttng: Fix ControlFlowViewTest on Mac 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 Reviewed-on: https://git.eclipse.org/r/77105 Reviewed-by: Hudson CI Reviewed-by: Patrick Tasse Tested-by: Patrick Tasse --- diff --git a/lttng/org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests/src/org/eclipse/tracecompass/lttng2/kernel/ui/swtbot/tests/ControlFlowViewTest.java b/lttng/org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests/src/org/eclipse/tracecompass/lttng2/kernel/ui/swtbot/tests/ControlFlowViewTest.java index 62b81255a7..46121f8f11 100644 --- a/lttng/org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests/src/org/eclipse/tracecompass/lttng2/kernel/ui/swtbot/tests/ControlFlowViewTest.java +++ b/lttng/org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests/src/org/eclipse/tracecompass/lttng2/kernel/ui/swtbot/tests/ControlFlowViewTest.java @@ -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 */