summaryrefslogtreecommitdiffstats
path: root/tests/auto/qcombobox/tst_qcombobox.cpp
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-07 10:44:58 +0200
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-07 10:44:58 +0200
commit206769af3fe145dbc46628dba67ed3115fcbabf2 (patch)
tree7aa1c5d354cb4a5cd7350a52715f2d0229654614 /tests/auto/qcombobox/tst_qcombobox.cpp
parentda4bfa273c955574d68dde1b44681de31a478ee0 (diff)
Stabilize QComboBox test.
On Mac, there is long fading animation before the popups hide
Diffstat (limited to 'tests/auto/qcombobox/tst_qcombobox.cpp')
-rw-r--r--tests/auto/qcombobox/tst_qcombobox.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/qcombobox/tst_qcombobox.cpp b/tests/auto/qcombobox/tst_qcombobox.cpp
index be338620ca..0773184bc6 100644
--- a/tests/auto/qcombobox/tst_qcombobox.cpp
+++ b/tests/auto/qcombobox/tst_qcombobox.cpp
@@ -879,12 +879,12 @@ void tst_QComboBox::hide()
{
testWidget->addItem("foo");
testWidget->showPopup();
- QTest::qWait(500); //allow combobox effect to complete
- QVERIFY(testWidget->view());
- QVERIFY(testWidget->view()->isVisible());
+ QTest::qWait(200); //allow combobox effect to complete
+ QTRY_VERIFY(testWidget->view());
+ QTRY_VERIFY(testWidget->view()->isVisible());
testWidget->hidePopup();
- QTest::qWait(500); //allow combobox effect to complete
- QVERIFY(!testWidget->view()->isVisible());
+ QTest::qWait(200); //allow combobox effect to complete
+ QTRY_VERIFY(!testWidget->view()->isVisible());
testWidget->hide();
QVERIFY(!testWidget->isVisible());
}