From: Marc-Andre Laperle Date: Mon, 31 Aug 2015 22:08:28 +0000 (-0400) Subject: tmf: Fix wrong context menu in ColumnHeaderMenuTest X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=e33ad2c1a850b33299a2910933c24f4821685922;p=deliverable%2Ftracecompass.git tmf: Fix wrong context menu in ColumnHeaderMenuTest This worked before because SWTBot didn't send the appropriate MenuDetect when right-clicking on a table so the TmfEventsTable still had the last context menu (the header's). Now that it does send MenuDetect, it right-clicks in the middle of the table and the context menu is not the header's context menu. The context menu call should be done on the header instead. Change-Id: I205d3f1de12d0b8b04100d956f5c1557aa10f57d Signed-off-by: Marc-Andre Laperle Reviewed-on: https://git.eclipse.org/r/54940 Reviewed-by: Patrick Tasse Reviewed-by: Hudson CI --- diff --git a/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/viewers/events/ColumnHeaderMenuTest.java b/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/viewers/events/ColumnHeaderMenuTest.java index 6dc2b84bfc..ba55593be8 100644 --- a/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/viewers/events/ColumnHeaderMenuTest.java +++ b/tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/viewers/events/ColumnHeaderMenuTest.java @@ -193,7 +193,7 @@ public class ColumnHeaderMenuTest { headerBot.contextMenu("Message").click(); assertVisibleColumns(tableBot.widget, new String[] { }); - tableBot.contextMenu("Show All").click(); + headerBot.contextMenu("Show All").click(); assertVisibleColumns(tableBot.widget, new String[] { "Timestamp", "Host", "Logger", "File", "Line", "Message" }); }