diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2017-07-12 19:10:58 +0200 |
---|---|---|
committer | Holger Freyther <holger+qt@freyther.de> | 2017-09-12 06:14:29 +0000 |
commit | c09aa96a136dd841e75b459d78ea27ad2bc4474c (patch) | |
tree | 15819a6691a0b15076df5e65ab2f195598691af1 /wayland/democompositor/tests/apps/apps.qrc | |
parent | cdc7adb2a3696c41d01c715542cb82b984e2631e (diff) |
democompositor: Add parsing of entries and testcode
Implement parsing of the json definition. Initially be strict to
parse the file correctly. Add some basic tests for checking how
data and file parsing is working and feed some invalid input into
the parser and check the result.
Use macro for checking the JSON type and doing the conversion to
allow an early return and to avoid having to write the same code
over and over again.
Change-Id: I8c4301bac1b6226f94c8fc0004a313487b73c21a
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'wayland/democompositor/tests/apps/apps.qrc')
-rw-r--r-- | wayland/democompositor/tests/apps/apps.qrc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/wayland/democompositor/tests/apps/apps.qrc b/wayland/democompositor/tests/apps/apps.qrc new file mode 100644 index 0000000..07e0afe --- /dev/null +++ b/wayland/democompositor/tests/apps/apps.qrc @@ -0,0 +1,5 @@ +<!DOCTYPE RCC><RCC version="1.0"> +<qresource prefix="/"> + <file alias="app.json">../../apps/files/clock.app</file> +</qresource> +</RCC> |