diff options
author | Robert Griebl <robert.griebl@qt.io> | 2023-09-25 19:27:50 +0200 |
---|---|---|
committer | Robert Griebl <robert.griebl@qt.io> | 2023-09-26 11:13:38 +0200 |
commit | 3b47cfced267f82388a9832c9ecb3ec6b1e7eefd (patch) | |
tree | 90702008b66eed215add5ed26f7469a81e371280 /tests | |
parent | 9936a7fcb6195f7a21c09c2c903c94d1a27e0b91 (diff) |
QML can now deal with QList<object derived type *> properties
This means we can finally make our QML API look nicer.
Also extended the simple QML auto-test to make sure the changed API
gets tested.
Change-Id: I4ce3d7d49b2cf93ed1959bd2c1c835bd3e4ce0dc
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qml/simple/tst_applicationmanager.qml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qml/simple/tst_applicationmanager.qml b/tests/auto/qml/simple/tst_applicationmanager.qml index 12cf73d2..46c7e62a 100644 --- a/tests/auto/qml/simple/tst_applicationmanager.qml +++ b/tests/auto/qml/simple/tst_applicationmanager.qml @@ -18,11 +18,14 @@ TestCase { // Either appman is build in single-process mode or it was started with --force-single-process property bool singleProcess : Qt.application.arguments.indexOf("--force-single-process") !== -1 || !AmTest.buildConfig[0].QT_FEATURES.QT_FEATURE_am_multi_process + property WindowObject lastWindowAdded: null property QtObject windowHandler: QtObject { function windowAddedHandler(window) { // console.info("window " + window + " added"); + lastWindowAdded = window } + function windowContentStateChangedHandler(window) { // console.info("window content state = " + window.contentState); } @@ -300,6 +303,11 @@ TestCase { compare(listView.currentItem.modelData.isRunning, true) compare(listView.currentItem.modelData.isShuttingDown, false) + // make sure we have a window + tryCompare(WindowManager, "count", 1) + compare(WindowManager.windowsOfApplication(data.appId).length, 1) + compare(WindowManager.windowsOfApplication(data.appId)[0], lastWindowAdded) + ApplicationManager.stopApplication(data.appId, data.forceKill); checkApplicationState(data.appId, Am.ShuttingDown); |