diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2017-09-28 15:14:58 +0200 |
---|---|---|
committer | Holger Freyther <holger+qt@freyther.de> | 2017-11-09 13:03:21 +0000 |
commit | a84980d2cde1f62e574446729d48dd0b29804933 (patch) | |
tree | 88cab57c9dc79493b44cb93330fd935d367840c1 /wayland/democompositor/tests/apps/tst_appparser.cpp | |
parent | a55e76398219a2188691ca718216b9faca7abe18 (diff) |
democompositor: Add a mandatory "Id" to the app specification
Add a manodatory appId, expose it to QML, add a simple find by
id method and update the testcases.
Change-Id: I4f80a97e5f31e972694dd61eff0166f9de2f5d51
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'wayland/democompositor/tests/apps/tst_appparser.cpp')
-rw-r--r-- | wayland/democompositor/tests/apps/tst_appparser.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/wayland/democompositor/tests/apps/tst_appparser.cpp b/wayland/democompositor/tests/apps/tst_appparser.cpp index a71c123..38a459c 100644 --- a/wayland/democompositor/tests/apps/tst_appparser.cpp +++ b/wayland/democompositor/tests/apps/tst_appparser.cpp @@ -71,15 +71,16 @@ void tst_AppParser::testValidVersion1_data() QTest::addColumn<QByteArray>("input"); QTest::addColumn<QString>("icon"); QTest::addColumn<QString>("name"); + QTest::addColumn<QString>("id"); QTest::addColumn<QString>("exec"); QTest::addColumn<QString>("path"); QTest::addRow("clock") - << QByteArray("{\"Type\":\"Application\", \"Version\":1, \"Icon\":\"icon\", \"Name\":\"Clocks\",\"Exec\":\"clocks\"}") - << QStringLiteral("icon") << QStringLiteral("Clocks") << QStringLiteral("clocks") << QString(); + << QByteArray("{\"Type\":\"Application\", \"Version\":1, \"Icon\":\"icon\", \"Name\":\"Clocks\",\"Id\":\"io.qt.clocks\",\"Exec\":\"clocks\"}") + << QStringLiteral("icon") << QStringLiteral("Clocks") << QStringLiteral("io.qt.clocks") << QStringLiteral("clocks") << QString(); QTest::addRow("path") - << QByteArray("{\"Type\":\"Application\", \"Version\":1, \"Icon\":\"icon\", \"Name\":\"Clocks\",\"Exec\":\"clocks\",\"Path\":\"P\"}") - << QStringLiteral("icon") << QStringLiteral("Clocks") << QStringLiteral("clocks") << QStringLiteral("P"); + << QByteArray("{\"Type\":\"Application\", \"Version\":1, \"Icon\":\"icon\", \"Name\":\"Clocks\",\"Id\":\"io.qt.clocks\",\"Exec\":\"clocks\",\"Path\":\"P\"}") + << QStringLiteral("icon") << QStringLiteral("Clocks") << QStringLiteral("io.qt.clocks") << QStringLiteral("clocks") << QStringLiteral("P"); } void tst_AppParser::testValidVersion1() |