tmf: Fix wrong context menu in ColumnHeaderMenuTest
authorMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Mon, 31 Aug 2015 22:08:28 +0000 (18:08 -0400)
committerMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Mon, 31 Aug 2015 23:54:01 +0000 (19:54 -0400)
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 <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/54940
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-by: Hudson CI
tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/viewers/events/ColumnHeaderMenuTest.java

index 6dc2b84bfcd5e4ae4fd6cc8d178721df38b845cb..ba55593be85e3aec63f3348c6e0d8b462b06631c 100644 (file)
@@ -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" });
     }
 
This page took 0.024775 seconds and 5 git commands to generate.