fix #725 Improving test stability

test.aria.touch.widgets.dialog.events.DialogAnimationsTestCase and
test.aria.widgets.container.tooltip.TooltipTestCase were randomly
failing because of timeouts (which were sometimes too small).
This commit replaces the timeouts with calls to waitFor.