summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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());