diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2011-09-15 10:09:10 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-09-15 08:08:49 +0200 |
commit | 1dc86cbdc4c4a3ef87571d4e9dfe41cb58fb62ae (patch) | |
tree | ad7f30976f264f2e832569e6ec31c17d0895ee4e /tests | |
parent | 582037a9312de14d482979baddd9fcf1898f36e3 (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.cpp | 6 |
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); |