summaryrefslogtreecommitdiffstats
path: root/tests/auto/qitemdelegate
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-18 13:01:34 +0200
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-18 13:01:54 +0200
commit6454aca1b273daa2e54a77f83e1f6d4bae83427d (patch)
tree7ce510a66ea331db326f1747c5eefdb34c531fcc /tests/auto/qitemdelegate
parent05ddf8489b91b4a28237cd2c72a97f4d3f33fa98 (diff)
Stabilize test
Diffstat (limited to 'tests/auto/qitemdelegate')
-rw-r--r--tests/auto/qitemdelegate/tst_qitemdelegate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qitemdelegate/tst_qitemdelegate.cpp b/tests/auto/qitemdelegate/tst_qitemdelegate.cpp
index e6d6df3517..5d1034a3c1 100644
--- a/tests/auto/qitemdelegate/tst_qitemdelegate.cpp
+++ b/tests/auto/qitemdelegate/tst_qitemdelegate.cpp
@@ -475,7 +475,7 @@ void tst_QItemDelegate::font()
QApplication::sendPostedEvents(); //glib workaround
#endif
- QCOMPARE(delegate->displayText, item->text());
+ QTRY_COMPARE(delegate->displayText, item->text());
if (properties.contains("italic")) {
QCOMPARE(delegate->displayFont.italic(), item->font().italic());
}
@@ -1163,7 +1163,7 @@ void tst_QItemDelegate::task257859_finalizeEdit()
QCOMPARE(editor->hasFocus(), true);
QDialog dialog;
- QTimer::singleShot(100, &dialog, SLOT(close()));
+ QTimer::singleShot(500, &dialog, SLOT(close()));
dialog.exec();
QTRY_VERIFY(!editor);
}