+
+int UtcDaliJsonParserMethod11(void)
+{
+ ToolkitTestApplication application;
+ tet_infoline("JSON tree copy");
+
+ std::string s1( ReplaceQuotes(" \
+{ \
+ 'animations': \
+ { \
+ 'bump': \
+ { \
+ 'properties': \
+ [ \
+ { \
+ 'actor':'bump-image', \
+ 'property':'uLightPosition', \
+ 'value':[0.8, 0.0, -1.5], \
+ 'alpha-function': 'BOUNCE', \
+ 'time-period': { 'duration': 2.5 } \
+ } \
+ ] \
+ } \
+ } \
+} \
+"));
+
+ JsonParser parser = JsonParser::New();
+
+ parser.Parse( s1 );
+
+ JsonParser parser2 = JsonParser::New(*parser.GetRoot());
+
+ DALI_TEST_CHECK(parser.GetRoot());
+ DALI_TEST_CHECK(parser2.GetRoot());
+
+ CompareTrees( *parser.GetRoot(), *parser2.GetRoot() );
+
+ tet_result(TET_PASS);
+ END_TEST;
+}