swtbot: Fix ControlFlowViewTest
authorPatrick Tasse <patrick.tasse@gmail.com>
Tue, 2 Jun 2015 21:26:02 +0000 (17:26 -0400)
committerPatrick Tasse <patrick.tasse@gmail.com>
Thu, 4 Jun 2015 15:32:15 +0000 (11:32 -0400)
commit6e4a07af7699ac18f867980276ca6e755b4f30e4
treee3db70d6e7316e47cf85b95aac84b6b0cb38c0a6
parent15ebe5e7aaa625a5a3e3dea3ae6a7c301f21ef23
swtbot: Fix ControlFlowViewTest

If the test host burps for a minimum of 400 ms between the 5th and the
6th click of the "Follow CPU Fwd" button, the test will fail because the
wait condition for the time range returns immediately since the 6th
selected event is a change of process that has the same timestamp as the
5th selected event and the listener notifier has timed out due to the
host delay, updating the trace manager with the selection time of the
5th selected event, and then the following assert on the tree selection
fails because the selected entry change event is still stuck in the new
listener notifier for another 400 ms.

A new condition is created to wait until the tree selection equals the
expected value, instead of using an assertion.

Additionally, the tests are updated to use the new click(int) with
modifier methods in SWTBot, allowing the test of range selection using
tool bar buttons while the SHIFT key is pressed.

Change-Id: Ic607d063b13248bd5ab91a87861ce3dad8a2b286
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/49259
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests/src/org/eclipse/tracecompass/lttng2/kernel/ui/swtbot/tests/ControlFlowViewTest.java
org.eclipse.tracecompass.tmf.ui.swtbot.tests/shared/org/eclipse/tracecompass/tmf/ui/swtbot/tests/shared/ConditionHelpers.java
This page took 0.031089 seconds and 5 git commands to generate.