summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@trolltech.com>2009-09-18 11:01:34 (GMT)
committerOlivier Goffart <ogoffart@trolltech.com>2009-09-18 11:01:54 (GMT)
commit6454aca1b273daa2e54a77f83e1f6d4bae83427d (patch)
tree7ce510a66ea331db326f1747c5eefdb34c531fcc /tests
parent05ddf8489b91b4a28237cd2c72a97f4d3f33fa98 (diff)
downloadQt-6454aca1b273daa2e54a77f83e1f6d4bae83427d.zip
Qt-6454aca1b273daa2e54a77f83e1f6d4bae83427d.tar.gz
Qt-6454aca1b273daa2e54a77f83e1f6d4bae83427d.tar.bz2
Stabilize test
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qitemdelegate/tst_qitemdelegate.cpp4
-rw-r--r--tests/auto/qmdiarea/tst_qmdiarea.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qitemdelegate/tst_qitemdelegate.cpp b/tests/auto/qitemdelegate/tst_qitemdelegate.cpp
index e6d6df3..5d1034a 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);
}
diff --git a/tests/auto/qmdiarea/tst_qmdiarea.cpp b/tests/auto/qmdiarea/tst_qmdiarea.cpp
index 1936c5b..65f1937 100644
--- a/tests/auto/qmdiarea/tst_qmdiarea.cpp
+++ b/tests/auto/qmdiarea/tst_qmdiarea.cpp
@@ -1769,7 +1769,7 @@ void tst_QMdiArea::tileSubWindows()
qt_x11_wait_for_window_manager(&workspace);
#endif
qApp->processEvents();
- QCOMPARE(workspace.size(), QSize(150, 150));
+ QTRY_COMPARE(workspace.size(), QSize(150, 150));
// Horizontal scroll bar.
QScrollBar *hBar = workspace.horizontalScrollBar();