summaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/applicationmanager/apps/tld.test.simple1
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/applicationmanager/apps/tld.test.simple1')
-rw-r--r--tests/auto/qml/applicationmanager/apps/tld.test.simple1/app1.qml37
-rw-r--r--tests/auto/qml/applicationmanager/apps/tld.test.simple1/icon.pngbin0 -> 5138 bytes
-rw-r--r--tests/auto/qml/applicationmanager/apps/tld.test.simple1/info.yaml25
3 files changed, 62 insertions, 0 deletions
diff --git a/tests/auto/qml/applicationmanager/apps/tld.test.simple1/app1.qml b/tests/auto/qml/applicationmanager/apps/tld.test.simple1/app1.qml
new file mode 100644
index 00000000..a721ae71
--- /dev/null
+++ b/tests/auto/qml/applicationmanager/apps/tld.test.simple1/app1.qml
@@ -0,0 +1,37 @@
+// Copyright (C) 2021 The Qt Company Ltd.
+// Copyright (C) 2019 Luxoft Sweden AB
+// Copyright (C) 2018 Pelagicore AG
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+import QtQuick
+import QtApplicationManager.Application
+
+ApplicationManagerWindow {
+ Rectangle {
+ id: rect
+ anchors.centerIn: parent
+ width: 180; height: 180; radius: width/4
+ color: "red"
+ }
+
+ Connections {
+ target: ApplicationInterface
+ function onQuit() {
+ // Casual check for attached ApplicationManagerWindow type
+ if (rect.ApplicationManagerWindow.window.visible)
+ target.acknowledgeQuit();
+ }
+ }
+ IntentHandler {
+ intentIds: [ "applicationInterfaceProperties" ]
+ onRequestReceived: function(req) {
+ req.sendReply({
+ "applicationId": ApplicationInterface.applicationId,
+ "applicationProperties": ApplicationInterface.applicationProperties,
+ "icon": ApplicationInterface.icon,
+ "systemProperties": ApplicationInterface.systemProperties,
+ "version": ApplicationInterface.version
+ })
+ }
+ }
+}
diff --git a/tests/auto/qml/applicationmanager/apps/tld.test.simple1/icon.png b/tests/auto/qml/applicationmanager/apps/tld.test.simple1/icon.png
new file mode 100644
index 00000000..adb840ce
--- /dev/null
+++ b/tests/auto/qml/applicationmanager/apps/tld.test.simple1/icon.png
Binary files differ
diff --git a/tests/auto/qml/applicationmanager/apps/tld.test.simple1/info.yaml b/tests/auto/qml/applicationmanager/apps/tld.test.simple1/info.yaml
new file mode 100644
index 00000000..a94c24da
--- /dev/null
+++ b/tests/auto/qml/applicationmanager/apps/tld.test.simple1/info.yaml
@@ -0,0 +1,25 @@
+formatVersion: 1
+formatType: am-application
+---
+id: 'tld.test.simple1'
+icon: 'icon.png'
+code: 'app1.qml'
+runtime: 'qml'
+version: '1.0'
+name:
+ en: 'Simple1'
+applicationProperties:
+ ignored: 42
+ protected:
+ pro1: 'pro1'
+ proandpri: 'pro2'
+ private:
+ pri1: 'pri1'
+ proandpri: 'pri2'
+
+mimeTypes: [
+ "x-scheme-handler/x-test",
+ "text/plain"
+ ]
+intents:
+ - id: applicationInterfaceProperties