aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2011-09-15 10:09:10 +1000
committerQt by Nokia <qt-info@nokia.com>2011-09-15 08:08:49 +0200
commit1dc86cbdc4c4a3ef87571d4e9dfe41cb58fb62ae (patch)
treead7f30976f264f2e832569e6ec31c17d0895ee4e /tests
parent582037a9312de14d482979baddd9fcf1898f36e3 (diff)
Fix anchorRewindBug test failure.
Task-number: QTBUG-21396 Change-Id: Ie4397242a953a3b1504873b7fbc63719d0e99081 Reviewed-on: http://codereview.qt-project.org/4927 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp b/tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp
index 165179e35d..f3b93ef67f 100644
--- a/tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp
+++ b/tests/auto/declarative/qdeclarativestates/tst_qdeclarativestates.cpp
@@ -958,7 +958,11 @@ void tst_qdeclarativestates::anchorRewindBug()
{
QSGView *view = new QSGView;
view->setSource(QUrl::fromLocalFile(SRCDIR "/data/anchorRewindBug.qml"));
- qApp->processEvents();
+
+ view->show();
+ view->requestActivateWindow();
+
+ QTest::qWaitForWindowShown(view);
QSGRectangle *rect = qobject_cast<QSGRectangle*>(view->rootObject());
QVERIFY(rect != 0);