summaryrefslogtreecommitdiffstats
path: root/tests/auto/qcombobox
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-22 16:56:24 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-22 16:57:11 (GMT)
commitf5d6022f4ca4af32de2b683dfb9f41173e7c8934 (patch)
treef573bdfe72a6bee62372d46e624b118fa26c6558 /tests/auto/qcombobox
parent0691350e14632dea6c12a2d37e605dc0628b4ceb (diff)
downloadQt-f5d6022f4ca4af32de2b683dfb9f41173e7c8934.zip
Qt-f5d6022f4ca4af32de2b683dfb9f41173e7c8934.tar.gz
Qt-f5d6022f4ca4af32de2b683dfb9f41173e7c8934.tar.bz2
Stabilize more test
Diffstat (limited to 'tests/auto/qcombobox')
-rw-r--r--tests/auto/qcombobox/tst_qcombobox.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qcombobox/tst_qcombobox.cpp b/tests/auto/qcombobox/tst_qcombobox.cpp
index 1b1eb1f..b549af6 100644
--- a/tests/auto/qcombobox/tst_qcombobox.cpp
+++ b/tests/auto/qcombobox/tst_qcombobox.cpp
@@ -1977,11 +1977,14 @@ void tst_QComboBox::task190351_layout()
list->addItem(QLatin1String("list") + QString::number(i));
listCombo.show();
+ QTest::qWaitForWindowShown(&listCombo);
QTRY_VERIFY(listCombo.isVisible());
listCombo.setCurrentIndex(70);
listCombo.showPopup();
QTRY_VERIFY(listCombo.view());
+ QTest::qWaitForWindowShown(listCombo.view());
QTRY_VERIFY(listCombo.view()->isVisible());
+ QApplication::processEvents();
#ifdef QT_BUILD_INTERNAL
QFrame *container = qFindChild<QComboBoxPrivateContainer *>(&listCombo);