Unit Tests

- Added JSON samples to test the parser.
This commit is contained in:
Paul Beckingham 2011-05-22 14:41:40 -04:00
parent df1920d75c
commit f669b5f56f
22 changed files with 756 additions and 8 deletions

26
test/json/3.json Normal file
View file

@ -0,0 +1,26 @@
{"widget": {
"debug": "on",
"window": {
"title": "Sample Konfabulator Widget",
"name": "main_window",
"width": 500,
"height": 500
},
"image": {
"src": "Images/Sun.png",
"name": "sun1",
"hOffset": 250,
"vOffset": 250,
"alignment": "center"
},
"text": {
"data": "Click Here",
"size": 36,
"style": "bold",
"name": "text1",
"hOffset": 250,
"vOffset": 100,
"alignment": "center",
"onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
}
}}