Add unit tests that catch invalid 'screen' and 'widget' JSON data.

This commit is contained in:
Pim van Pelt
2017-11-26 16:01:08 +01:00
parent f9c4520b60
commit 83b0d346ae
6 changed files with 64 additions and 39 deletions

View File

@ -0,0 +1,27 @@
{
"x": 0,
"y": 0,
"w": 320,
"h": 240,
"widgets": [
{
"name": "one",
"x": 16,
"y": 16,
"w": 48,
"h": 48,
"label": "One",
"type": 0
},
{
"name": "two",
"x": 256,
"y": 16,
"w": 48,
"h": 48,
"label": "Two",
"type": 0
}
]
}

View File

@ -0,0 +1,8 @@
{
"x": 16,
"y": 16,
"w": 48,
"h": 48,
"label": "One",
"type": 0
}