From af9e4976bea7193a6f4ad09d823aaa1ffee25a3b Mon Sep 17 00:00:00 2001 From: Thierry Bastian Date: Thu, 14 Oct 2010 11:01:33 +0200 Subject: Fixed autotest that was missing focus on Windows Reviewed-by: ogoffart --- tests/auto/qcompleter/tst_qcompleter.cpp | 2 ++ 1 file changed, 2 insertions(+) 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()); -- cgit v0.12