[json-glib] parser-test: Add a complex nested object test
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [json-glib] parser-test: Add a complex nested object test
- Date: Thu, 18 Mar 2010 15:27:27 +0000 (UTC)
commit 90d6e0b8c334b3fd7995c126f07dd61ba0a9e0fb
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Thu Mar 18 15:26:19 2010 +0000
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.
json-glib/tests/parser-test.c | 21 ++++++++++++++++++++-
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 {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]