diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-05-19 10:49:29 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-05-19 10:50:31 (GMT) |
commit | cf427e8dcbfc63cbad67117d2da6d554aea495a9 (patch) | |
tree | 660a50125b9e59cb57bc26f8c4d0e8907fc44b5f /tests/auto | |
parent | 29b1965fd198b35d8f1af20becf9ed9cab54a49f (diff) | |
download | Qt-cf427e8dcbfc63cbad67117d2da6d554aea495a9.zip Qt-cf427e8dcbfc63cbad67117d2da6d554aea495a9.tar.gz Qt-cf427e8dcbfc63cbad67117d2da6d554aea495a9.tar.bz2 |
make splitter autotest pass on mac too
It's not enough to call processEvents() just once on all platforms.
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qsplitter/tst_qsplitter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/qsplitter/tst_qsplitter.cpp b/tests/auto/qsplitter/tst_qsplitter.cpp index b463f7f..51bd99f 100644 --- a/tests/auto/qsplitter/tst_qsplitter.cpp +++ b/tests/auto/qsplitter/tst_qsplitter.cpp @@ -55,6 +55,7 @@ #include <qtreeview.h> #include <qlabel.h> #include <qdebug.h> // for file error messages +#include "../../shared/util.h" //TESTED_CLASS= //TESTED_FILES= @@ -1341,9 +1342,7 @@ void tst_QSplitter::task187373_addAbstractScrollAreas() if (addOutsideConstructor) splitter->addWidget(w); - qApp->processEvents(); - - QVERIFY(w->isVisible()); + QTRY_VERIFY(w->isVisible()); QVERIFY(!w->isHidden()); QVERIFY(w->viewport()->isVisible()); QVERIFY(!w->viewport()->isHidden()); |