summaryrefslogtreecommitdiffstats
path: root/tests/auto/qitemdelegate
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-17 18:02:57 +0200
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-17 18:03:23 +0200
commit7813e29760120d8e7ed0b1f4c91767cc809a2623 (patch)
tree908411499638edcb1a1d4d4249ab6ad1e22832a8 /tests/auto/qitemdelegate
parent0f0cda626c697fe5244853dbdd14feb0cf81055e (diff)
Stabilize test
Diffstat (limited to 'tests/auto/qitemdelegate')
-rw-r--r--tests/auto/qitemdelegate/tst_qitemdelegate.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/auto/qitemdelegate/tst_qitemdelegate.cpp b/tests/auto/qitemdelegate/tst_qitemdelegate.cpp
index dbbbd1ca32..e6d6df3517 100644
--- a/tests/auto/qitemdelegate/tst_qitemdelegate.cpp
+++ b/tests/auto/qitemdelegate/tst_qitemdelegate.cpp
@@ -900,11 +900,8 @@ void tst_QItemDelegate::decoration()
item->setSelected(true);
QApplication::processEvents();
-#ifdef Q_WS_QWS
- QApplication::sendPostedEvents(); //glib workaround
-#endif
- QCOMPARE(delegate.decorationRect.size(), expected);
+ QTRY_COMPARE(delegate.decorationRect.size(), expected);
}
void tst_QItemDelegate::editorEvent_data()