From 6dcf67306215a9475c9ca83ddf951de15f2dfe8b Mon Sep 17 00:00:00 2001 From: Martin Jones Date: Thu, 19 May 2011 17:24:07 +1000 Subject: [PATCH] Fix unstable test. Change-Id: I336b6a02b763c3be9b01a074f641cb031cf18268 --- .../declarative/qsgtextinput/tst_qsgtextinput.cpp | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) 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() -- 1.7.2.5