aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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);