diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-25 18:22:31 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-09-28 09:50:20 (GMT) |
commit | 3cb2def34c32efe1155e6938eca65706dcc97aac (patch) | |
tree | 4471485f0ca6dcda935cbf20f067994b2b89a695 /tests/auto/qcombobox | |
parent | ce6f58a54ccbf6c83cb2b4d725efb8fc5e1f261f (diff) | |
download | Qt-3cb2def34c32efe1155e6938eca65706dcc97aac.zip Qt-3cb2def34c32efe1155e6938eca65706dcc97aac.tar.gz Qt-3cb2def34c32efe1155e6938eca65706dcc97aac.tar.bz2 |
Stabilize some more tests
Diffstat (limited to 'tests/auto/qcombobox')
-rw-r--r-- | tests/auto/qcombobox/tst_qcombobox.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qcombobox/tst_qcombobox.cpp b/tests/auto/qcombobox/tst_qcombobox.cpp index be1cb98..61aabaa 100644 --- a/tests/auto/qcombobox/tst_qcombobox.cpp +++ b/tests/auto/qcombobox/tst_qcombobox.cpp @@ -2125,15 +2125,17 @@ void tst_QComboBox::task248169_popupWithMinimalSize() comboBox.setGeometry(desktopSize.width() - (desktopSize.width() / 4), (desktopSize.width() / 4), (desktopSize.width() / 2), (desktopSize.width() / 4)); comboBox.show(); + QTest::qWaitForWindowShown(&comboBox); QTRY_VERIFY(comboBox.isVisible()); comboBox.showPopup(); QTRY_VERIFY(comboBox.view()); + QTest::qWaitForWindowShown(comboBox.view()); QTRY_VERIFY(comboBox.view()->isVisible()); #ifdef QT_BUILD_INTERNAL QFrame *container = qFindChild<QComboBoxPrivateContainer *>(&comboBox); QVERIFY(container); - QVERIFY(desktop.screenGeometry(container).contains(container->geometry())); + QTRY_VERIFY(desktop.screenGeometry(container).contains(container->geometry())); #endif } |