From 6454aca1b273daa2e54a77f83e1f6d4bae83427d Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Fri, 18 Sep 2009 13:01:34 +0200 Subject: Stabilize test --- tests/auto/qitemdelegate/tst_qitemdelegate.cpp | 4 ++-- tests/auto/qmdiarea/tst_qmdiarea.cpp | 2 +- 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(); -- cgit v0.12