summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2010-03-25 15:38:40 (GMT)
committerKent Hansen <kent.hansen@nokia.com>2010-03-25 15:38:40 (GMT)
commit3343298448da3f2546b0708670effb798f762c5c (patch)
tree73dfe3d7d5150f4f6cbeac8ead747eedfd323123 /tests
parentf4da9f9b347d296bc23e44e47e0a6883d5ad41ea (diff)
downloadQt-3343298448da3f2546b0708670effb798f762c5c.zip
Qt-3343298448da3f2546b0708670effb798f762c5c.tar.gz
Qt-3343298448da3f2546b0708670effb798f762c5c.tar.bz2
Use QTRY_COMPARE after QTest::qWaitForWindowShown()
Apparently it's possible that the window has been shown but haven't received a paint event yet.
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp b/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
index e623df6..febcec3 100644
--- a/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
+++ b/tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp
@@ -677,7 +677,7 @@ void tst_qdeclarativetextinput::setHAlignClearCache()
view.show();
QApplication::setActiveWindow(&view);
QTest::qWaitForWindowShown(&view);
- QCOMPARE(input.nbPaint, 1);
+ QTRY_COMPARE(input.nbPaint, 1);
input.setHAlign(QDeclarativeTextInput::AlignRight);
QApplication::processEvents();
//Changing the alignment should trigger a repaint