From e33ad2c1a850b33299a2910933c24f4821685922 Mon Sep 17 00:00:00 2001 From: Marc-Andre Laperle Date: Mon, 31 Aug 2015 18:08:28 -0400 Subject: [PATCH] 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 --- .../ui/swtbot/tests/viewers/events/ColumnHeaderMenuTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" }); } -- 2.34.1