swtbot: Stabilize use of SWTBotUtils.maximizeTable()
authorPatrick Tasse <patrick.tasse@gmail.com>
Mon, 21 Mar 2016 20:50:14 +0000 (16:50 -0400)
committerPatrick Tasse <patrick.tasse@gmail.com>
Tue, 29 Mar 2016 15:07:47 +0000 (11:07 -0400)
commit675b124966f266dab3244a8b47f56ccdbb999023
treefa8b6a1ac075c1c20ee682aae90d4a171953c7c0
parentd1709ceda78c03b2aa2725ac82b8c3e82b5bdc0e
swtbot: Stabilize use of SWTBotUtils.maximizeTable()

When Ctrl+M is pressed, the resize and layout of the workbench part does
not necessarily occur immediately. For tests that depend on the part
being maximized, the method should block until the resize has occurred.

So far, this issue was only seen when SWTKeyboardStrategy is used.
SWT strategy posts events to SWT and this differs from the AWT strategy.
But the solution in this patch offers an additional safety that is
beneficial to all keyboard strategies.

Change-Id: I3afac9314a82c319064accca1fce00c1dbeb893e
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/69075
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/shared/org/eclipse/tracecompass/tmf/ui/swtbot/tests/shared/SWTBotUtils.java
tmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/viewers/events/CallsiteEventsInTableTest.java
This page took 0.025516 seconds and 5 git commands to generate.