summaryrefslogtreecommitdiff
path: root/json-glib/tests/parser-test.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2010-03-18 15:26:19 +0000
committerEmmanuele Bassi <ebassi@linux.intel.com>2010-03-18 15:26:19 +0000
commit90d6e0b8c334b3fd7995c126f07dd61ba0a9e0fb (patch)
treec5f5964b08d71e5bb571c66e3495f8716b42a79f /json-glib/tests/parser-test.c
parentf4c57ac4227c4edb8a4cecb784e871fbd5649ad1 (diff)
downloadjson-glib-90d6e0b8c334b3fd7995c126f07dd61ba0a9e0fb.tar.gz
parser-test: Add a complex nested object test
The nested object test should use something that's really complex: an object with a nested array and nested object definitions.
Diffstat (limited to 'json-glib/tests/parser-test.c')
-rw-r--r--json-glib/tests/parser-test.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/json-glib/tests/parser-test.c b/json-glib/tests/parser-test.c
index ffda63a..9227e53 100644
--- a/json-glib/tests/parser-test.c
+++ b/json-glib/tests/parser-test.c
@@ -87,7 +87,26 @@ static const struct {
};
static const gchar *test_nested_objects[] = {
- "{ \"array\" : [ false, \"foo\" ], \"object\" : { \"foo\" : true } }"
+ "{ \"array\" : [ false, \"foo\" ], \"object\" : { \"foo\" : true } }",
+ "{ "
+ "\"type\" : \"ClutterGroup\", "
+ "\"width\" : 1, "
+ "\"children\" : [ "
+ "{ "
+ "\"type\" : \"ClutterRectangle\", "
+ "\"children\" : [ "
+ "{ \"type\" : \"ClutterText\", \"text\" : \"hello there\" }"
+ "] "
+ "}, "
+ "{ "
+ "\"type\" : \"ClutterGroup\", "
+ "\"width\" : 1, "
+ "\"children\" : [ "
+ "{ \"type\" : \"ClutterText\", \"text\" : \"hello\" }"
+ "] "
+ "} "
+ "] "
+ "}"
};
static const struct {