summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2010-10-14 09:01:33 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2010-10-14 09:01:33 (GMT)
commitaf9e4976bea7193a6f4ad09d823aaa1ffee25a3b (patch)
tree135c6ee00852be424808ece6d9c2d3e26346ae2e /tests
parenta8c04225b6b4cfcba2618b45dac3c867eaee2d41 (diff)
downloadQt-af9e4976bea7193a6f4ad09d823aaa1ffee25a3b.zip
Qt-af9e4976bea7193a6f4ad09d823aaa1ffee25a3b.tar.gz
Qt-af9e4976bea7193a6f4ad09d823aaa1ffee25a3b.tar.bz2
Fixed autotest that was missing focus on Windows
Reviewed-by: ogoffart
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qcompleter/tst_qcompleter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qcompleter/tst_qcompleter.cpp b/tests/auto/qcompleter/tst_qcompleter.cpp
index 6d28f9f..bdd105c 100644
--- a/tests/auto/qcompleter/tst_qcompleter.cpp
+++ b/tests/auto/qcompleter/tst_qcompleter.cpp
@@ -1483,8 +1483,10 @@ void tst_QCompleter::QTBUG_14292_filesystem()
edit.show();
QApplication::setActiveWindow(&edit);
+ edit.setFocus();
QTest::qWaitForWindowShown(&edit);
QTRY_VERIFY(QApplication::activeWindow() == &edit);
+ QTRY_VERIFY(edit.hasFocus());
QVERIFY(!comp.popup()->isVisible());
edit.setText(tmpDir.path());