Fix TextEdit and TextInput test failures.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Fri, 13 Jul 2012 01:11:31 +0000 (11:11 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 13 Jul 2012 06:24:36 +0000 (08:24 +0200)
commit867704b37cfbe055ba947291cde343204ce8e52a
tree4ebcf2f7752dafb1ac435931500b7848b01b5ad2
parentd166e34bade3b7c82f610f5df209b6418df9e178
Fix TextEdit and TextInput test failures.

Use qWaitForWindowActive and instead of qWaitForWindowShown where focus
is required.

Also send events directly to the tested item, instead of getting a
pointer to the same object from QGuiApplication::focusObject() which
can return null and crash the test if focus is stolen.

Change-Id: I6b8956a3afc8ffa58394a957a35b64b1c0924596
Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp
tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp