From d5e6111c62bc4437243fb1d6389e3af180f623d7 Mon Sep 17 00:00:00 2001 From: Alexis Menard Date: Thu, 1 Apr 2010 01:43:20 +0200 Subject: Attempt to fix the test. Reviewed-by:TrustMe --- tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp index 3d86c48..9229c7c 100644 --- a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp +++ b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp @@ -10054,9 +10054,9 @@ void tst_QGraphicsItem::updateMicroFocus() QTRY_COMPARE(QApplication::activeWindow(), static_cast(&parent)); input.doUpdateMicroFocus(); QApplication::processEvents(); - QCOMPARE(ic.nbUpdates, 1); + QTRY_COMPARE(ic.nbUpdates, 1); //No update since view2 does not have the focus. - QCOMPARE(ic2.nbUpdates, 0); + QTRY_COMPARE(ic2.nbUpdates, 0); } void tst_QGraphicsItem::QTBUG_5418_textItemSetDefaultColor() -- cgit v0.12