summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/qdeclarativemousearea/tst_qdeclarativemousearea.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativemousearea/tst_qdeclarativemousearea.cpp b/tests/auto/declarative/qdeclarativemousearea/tst_qdeclarativemousearea.cpp
index f515444..0ad360e 100644
--- a/tests/auto/declarative/qdeclarativemousearea/tst_qdeclarativemousearea.cpp
+++ b/tests/auto/declarative/qdeclarativemousearea/tst_qdeclarativemousearea.cpp
@@ -535,6 +535,7 @@ void tst_QDeclarativeMouseArea::preventStealing()
canvas->setSource(QUrl::fromLocalFile(SRCDIR "/data/preventstealing.qml"));
canvas->show();
+ QTest::qWaitForWindowShown(canvas);
canvas->setFocus();
QVERIFY(canvas->rootObject() != 0);
@@ -673,6 +674,7 @@ void tst_QDeclarativeMouseArea::preventContextMenu()
QDeclarativeView *view = createView();
view->setSource(QUrl::fromLocalFile(SRCDIR "/data/preventContextMenu.qml"));
view->show();
+ QTest::qWaitForWindowShown(view);
QVERIFY(view->rootObject() != 0);
QDeclarativeProperty mouseAreaEnabled(view->rootObject(), "mouseAreaEnabled");