aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick
diff options
context:
space:
mode:
authorKari Oikarinen <kari.oikarinen@qt.io>2018-02-22 13:41:09 +0200
committerKari Oikarinen <kari.oikarinen@qt.io>2018-02-23 12:38:39 +0000
commit693aeb803b64280ee3b4b5c024371f31a6f0089a (patch)
tree887b3ec45daca8dae5c6bd68e522b08d98d158e9 /tests/auto/quick
parentcb9ea3df7ed10b61cfdfb1ad40d3183f7996a833 (diff)
Fix tst_qquickwindow::unloadSubWindow
The transient window was never shown. The window was never visible, but the test passed anyway because the return value of qWaitForWindowExposed() was not checked. Change-Id: If1c9212d0f0bd2047bfa2ca24159f27f6186d191 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tests/auto/quick')
-rw-r--r--tests/auto/quick/qquickwindow/data/unloadSubWindow.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/quick/qquickwindow/data/unloadSubWindow.qml b/tests/auto/quick/qquickwindow/data/unloadSubWindow.qml
index bf9df4867d..8c409781d4 100644
--- a/tests/auto/quick/qquickwindow/data/unloadSubWindow.qml
+++ b/tests/auto/quick/qquickwindow/data/unloadSubWindow.qml
@@ -10,8 +10,10 @@ Window {
id: loader2
sourceComponent : Window {
id: inner
- visible: true
- Component.onCompleted: root.transientWindow = inner
+ Component.onCompleted: {
+ root.transientWindow = inner;
+ inner.show();
+ }
}
}
Component.onDestruction: {