From: Martin Jones Date: Thu, 19 May 2011 07:24:07 +0000 (+1000) Subject: Fix unstable test. X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=6dcf67306215a9475c9ca83ddf951de15f2dfe8b;p=konrad%2Fqtdeclarative.git Fix unstable test. Change-Id: I336b6a02b763c3be9b01a074f641cb031cf18268 --- diff --git a/tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp b/tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp index 1239abd..16d478c 100644 --- a/tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp +++ b/tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp @@ -2112,9 +2112,8 @@ void tst_qsgtextinput::setHAlignClearCache() QTest::qWaitForWindowShown(&view); QTRY_COMPARE(input.nbPaint, 1); input.setHAlign(QSGTextInput::AlignRight); - QApplication::processEvents(); //Changing the alignment should trigger a repaint - QCOMPARE(input.nbPaint, 2); + QTRY_COMPARE(input.nbPaint, 2); } void tst_qsgtextinput::focusOutClearSelection()