diff options
author | Kent Hansen <kent.hansen@nokia.com> | 2010-03-25 15:38:40 (GMT) |
---|---|---|
committer | Kent Hansen <kent.hansen@nokia.com> | 2010-03-25 15:38:40 (GMT) |
commit | 3343298448da3f2546b0708670effb798f762c5c (patch) | |
tree | 73dfe3d7d5150f4f6cbeac8ead747eedfd323123 /tests/auto | |
parent | f4da9f9b347d296bc23e44e47e0a6883d5ad41ea (diff) | |
download | Qt-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/auto')
-rw-r--r-- | tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp | 2 |
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 |