2008-05-28 Emmanuele Bassi <ebassi@openedhand.com>
authorEmmanuele Bassi <ebassi@openedhand.com>
Wed, 28 May 2008 12:20:54 +0000 (12:20 +0000)
committerEmmanuele Bassi <ebassi@openedhand.com>
Wed, 28 May 2008 12:20:54 +0000 (12:20 +0000)
* tests/test-script.c:
* tests/test-script.json: Test merging the same actor from two
different sources.

ChangeLog
tests/test-script.c
tests/test-script.json

index ad67206..9e2f318 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2008-05-28  Emmanuele Bassi  <ebassi@openedhand.com>
 
+       * tests/test-script.c:
+       * tests/test-script.json: Test merging the same actor from two
+       different sources.
+
+2008-05-28  Emmanuele Bassi  <ebassi@openedhand.com>
+
        Fix merging of objects with the same id.
 
        * clutter/clutter-script.c:
index 4e3ad94..659d464 100644 (file)
@@ -9,17 +9,24 @@ static ClutterScript *script = NULL;
 static guint merge_id = 0;
 
 static const gchar *test_unmerge =
-"{"
-"  \"id\" : \"blue-button\","
-"  \"type\" : \"ClutterRectangle\","
-"  \"color\" : \"#0000ffff\","
-"  \"x\" : 350,"
-"  \"y\" : 50,"
-"  \"width\" : 100,"
-"  \"height\" : 100,"
-"  \"visible\" : true,"
-"  \"reactive\" : true"
-"}";
+"["
+"  {"
+"    \"id\" : \"main-stage\","
+"    \"type\" : \"ClutterStage\","
+"    \"children\" : [ \"blue-button\" ]"
+"  },"
+"  {"
+"    \"id\" : \"blue-button\","
+"    \"type\" : \"ClutterRectangle\","
+"    \"color\" : \"#0000ffff\","
+"    \"x\" : 350,"
+"    \"y\" : 50,"
+"    \"width\" : 100,"
+"    \"height\" : 100,"
+"    \"visible\" : true,"
+"    \"reactive\" : true"
+"  }"
+"]";
 
 static const gchar *test_behaviour =
 "["
index c105764..e17185b 100644 (file)
@@ -72,8 +72,7 @@
           { "y-axis" : [ 60.0, [ 275, 100 ] ] },
           { "z-axis" : [ 45.0, [  75,  75 ] ] }
         ]
-      },
-      "blue-button",
+      }
     ]
   }
 }