aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2011-05-19 17:24:07 +1000
committerMartin Jones <martin.jones@nokia.com>2011-05-19 17:24:07 +1000
commit6dcf67306215a9475c9ca83ddf951de15f2dfe8b (patch)
tree581419d96646423d38853bee2ed7373d54763860 /tests
parentd774fc5f255fdd2443bd82a5fd87f4e4756e8a1b (diff)
Fix unstable test.
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/qsgtextinput/tst_qsgtextinput.cpp3
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 1239abd0cf..16d478caa0 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()