summaryrefslogtreecommitdiffstats
path: root/tests/auto/qcompleter
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-23 17:48:16 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-23 18:12:40 (GMT)
commitd2180e2fc3c56d56cd073a896d8449181ca28136 (patch)
treeb0e2cd889f700e82920ff706c591457e00680c60 /tests/auto/qcompleter
parent0f462990247d71e598346a8f96faf6d04cd4515e (diff)
downloadQt-d2180e2fc3c56d56cd073a896d8449181ca28136.zip
Qt-d2180e2fc3c56d56cd073a896d8449181ca28136.tar.gz
Qt-d2180e2fc3c56d56cd073a896d8449181ca28136.tar.bz2
Stabilize more test
Diffstat (limited to 'tests/auto/qcompleter')
-rw-r--r--tests/auto/qcompleter/tst_qcompleter.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/qcompleter/tst_qcompleter.cpp b/tests/auto/qcompleter/tst_qcompleter.cpp
index 1baae90..f7b9d98 100644
--- a/tests/auto/qcompleter/tst_qcompleter.cpp
+++ b/tests/auto/qcompleter/tst_qcompleter.cpp
@@ -1011,6 +1011,7 @@ void tst_QCompleter::multipleWidgets()
QWidget window;
window.show();
QApplication::setActiveWindow(&window);
+ QApplicaion::qWaitForWindowShown(&window);
QTRY_VERIFY(qApp->activeWindow() == &window);
QFocusEvent focusIn(QEvent::FocusIn);
@@ -1022,9 +1023,6 @@ void tst_QCompleter::multipleWidgets()
comboBox->setFocus();
comboBox->show();
window.activateWindow();
-#ifdef Q_WS_X11
- qt_x11_wait_for_window_manager(&window);
-#endif
QApplication::setActiveWindow(&window);
QTest::qWait(50);
QTRY_VERIFY(qApp->focusWidget() == comboBox);