aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/applicationwindow
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-06-29 11:28:42 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2017-06-29 14:29:48 +0000
commit93186f1b0cf01b01b0f1d1310a707492b882715f (patch)
tree82864ae72914a961e178f1bafb31976406addc1e /tests/auto/applicationwindow
parent89f8e1f54ff1f7e033f9a9da232bcb4c72b1e45f (diff)
Attempt to stabilize tst_applicationwindow::attachedProperties()
Change-Id: I49539d41d78c2670bcbed1829800a5974f91675b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/applicationwindow')
-rw-r--r--tests/auto/applicationwindow/tst_applicationwindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/applicationwindow/tst_applicationwindow.cpp b/tests/auto/applicationwindow/tst_applicationwindow.cpp
index af5a7544..e04c9450 100644
--- a/tests/auto/applicationwindow/tst_applicationwindow.cpp
+++ b/tests/auto/applicationwindow/tst_applicationwindow.cpp
@@ -441,7 +441,8 @@ void tst_applicationwindow::attachedProperties()
QVERIFY(!childItem->property("attached_header").value<QQuickItem *>());
QVERIFY(!childItem->property("attached_footer").value<QQuickItem *>());
QVERIFY(!childItem->property("attached_overlay").value<QQuickItem *>());
- childAppWindow->hide();
+ childAppWindow->close();
+ qApp->processEvents();
childWindow->show();
childWindow->requestActivate();
@@ -488,7 +489,7 @@ void tst_applicationwindow::attachedProperties()
QVERIFY(!childItem->property("attached_header").value<QQuickItem *>());
QVERIFY(!childItem->property("attached_footer").value<QQuickItem *>());
QVERIFY(!childItem->property("attached_overlay").value<QQuickItem *>());
- childWindow->hide();
+ childWindow->close();
// ### A temporary workaround to unblock the CI until the crash caused
// by https://codereview.qt-project.org/#/c/108517/ has been fixed...