[gxml] Replaced xNode.append_child() with Node.childs.add() on tests



commit c920d05fc26480d9c27b2999ca47d6cc827b7e1e
Author: Daniel Espinosa <esodan gmail com>
Date:   Wed Apr 15 18:40:27 2015 -0500

    Replaced xNode.append_child() with Node.childs.add() on tests
    
    * Containers serializable uses new Node.childs.add() API

 test/SerializableGeeArrayListTest.vala  |    2 +-
 test/SerializableGeeDualKeyMapTest.vala |    2 +-
 test/SerializableGeeHashMapTest.vala    |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/test/SerializableGeeArrayListTest.vala b/test/SerializableGeeArrayListTest.vala
index 8d765a7..ec0d546 100644
--- a/test/SerializableGeeArrayListTest.vala
+++ b/test/SerializableGeeArrayListTest.vala
@@ -74,7 +74,7 @@ class SerializableGeeArrayListTest : GXmlTest
         c.add (o2);
         var doc = new xDocument ();
         var root = (xElement) doc.create_element ("root");
-        doc.append_child (root);
+        doc.childs.add (root);
         c.serialize (root);
         if (!root.has_child_nodes ()) {
           stdout.printf (@"ERROR: root node have no childs $(doc)\n");
diff --git a/test/SerializableGeeDualKeyMapTest.vala b/test/SerializableGeeDualKeyMapTest.vala
index 7b28c6e..fd67e48 100644
--- a/test/SerializableGeeDualKeyMapTest.vala
+++ b/test/SerializableGeeDualKeyMapTest.vala
@@ -144,7 +144,7 @@ class SerializableGeeDualKeyMapTest : GXmlTest
         c.set (o4.owner, o4.name, o4);
         var doc = new xDocument ();
         var root = (xElement) doc.create_element ("root");
-        doc.append_child (root);
+        doc.childs.add (root);
         c.serialize (root);
         if (!root.has_child_nodes ()) {
           stdout.printf (@"ERROR: root node have no childs $(doc)\n");
diff --git a/test/SerializableGeeHashMapTest.vala b/test/SerializableGeeHashMapTest.vala
index 9c7cac0..3b776d2 100644
--- a/test/SerializableGeeHashMapTest.vala
+++ b/test/SerializableGeeHashMapTest.vala
@@ -113,7 +113,7 @@ class SerializableGeeHashMapTest : GXmlTest
         c.set (o2.name, o2);
         var doc = new xDocument ();
         var root = (xElement) doc.create_element ("root");
-        doc.append_child (root);
+        doc.childs.add (root);
         c.serialize (root);
         if (!root.has_child_nodes ()) {
           stdout.printf (@"ERROR: root node have no childs $(doc)\n");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]