diff options
author | Martin Jones <martin.jones@nokia.com> | 2011-05-19 17:24:07 +1000 |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2011-05-19 17:24:07 +1000 |
commit | 6dcf67306215a9475c9ca83ddf951de15f2dfe8b (patch) | |
tree | 581419d96646423d38853bee2ed7373d54763860 /tests | |
parent | d774fc5f255fdd2443bd82a5fd87f4e4756e8a1b (diff) |
Fix unstable test.
Change-Id: I336b6a02b763c3be9b01a074f641cb031cf18268
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/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 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() |