summaryrefslogtreecommitdiff
path: root/tests/auto
diff options
context:
space:
mode:
authorBernd Weimer <bernd.weimer@qt.io>2022-07-01 10:42:31 +0200
committerBernd Weimer <bernd.weimer@qt.io>2022-07-01 11:00:49 +0200
commit093ee2d43eab7e4dfbdd9b41a4f3a3e039049067 (patch)
tree190b669eaf745832149abfa9ba294322a524826f /tests/auto
parent8f4fbe0665f7e83c89364e44711f01c4408ff59f (diff)
downloadqtapplicationmanager-093ee2d43eab7e4dfbdd9b41a4f3a3e039049067.tar.gz
Make tests pass for "no-dbus" builds
Achieved by unconditionally supporting dbus option, like any other option. Also removed start-session-dbus option completely and added parameters to JS functions in intents test. Change-Id: I8057bc23fd0072c997c8a42539ef23a6c7a9e28a Pick-to: 6.4 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qml/intents/apps/intents1/intents1.qml4
-rw-r--r--tests/auto/qml/intents/apps/intents2/intents2.qml2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qml/intents/apps/intents1/intents1.qml b/tests/auto/qml/intents/apps/intents1/intents1.qml
index a9aa404c..7816ed38 100644
--- a/tests/auto/qml/intents/apps/intents1/intents1.qml
+++ b/tests/auto/qml/intents/apps/intents1/intents1.qml
@@ -19,14 +19,14 @@ QtObject {
property var handler: IntentHandler {
intentIds: [ "only1", "both", "match" ]
- onRequestReceived: {
+ onRequestReceived: (request) => {
request.sendReply({ "from": ApplicationInterface.applicationId, "in": request.parameters})
}
}
property var customErrorHandler: IntentHandler {
intentIds: [ "custom-error" ]
- onRequestReceived: {
+ onRequestReceived: (request) => {
request.sendErrorReply("custom error")
}
}
diff --git a/tests/auto/qml/intents/apps/intents2/intents2.qml b/tests/auto/qml/intents/apps/intents2/intents2.qml
index 2df1adca..435c9cb1 100644
--- a/tests/auto/qml/intents/apps/intents2/intents2.qml
+++ b/tests/auto/qml/intents/apps/intents2/intents2.qml
@@ -19,7 +19,7 @@ QtObject {
property var handler: IntentHandler {
intentIds: [ "both", "only2" ]
- onRequestReceived: {
+ onRequestReceived: (request) => {
Qt.callLater(function() {
request.sendReply({ "from": ApplicationInterface.applicationId, "in": request.parameters})
})