[gxml] GomArrayList: Fixed Unit Tests



commit 647d459280adcc0ed348eba9faed112fb2d462e4
Author: Daniel Espinosa <esodan gmail com>
Date:   Mon Nov 7 23:05:10 2016 -0600

    GomArrayList: Fixed Unit Tests

 gxml/XParser.vala              |    2 +-
 test/GomSerializationTest.vala |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gxml/XParser.vala b/gxml/XParser.vala
index 9cdd0bd..0d58a8e 100644
--- a/gxml/XParser.vala
+++ b/gxml/XParser.vala
@@ -300,7 +300,7 @@ public class GXml.XParser : Object, GXml.Parser {
           }
         }
         GLib.message ("No more element attributes for: "
-                        +(node as DomElement).local_name);
+                        +node.node_name);
       }
       if (isempty) {
         GLib.message ("No child nodes returning...");
diff --git a/test/GomSerializationTest.vala b/test/GomSerializationTest.vala
index 3de5286..79b01c5 100644
--- a/test/GomSerializationTest.vala
+++ b/test/GomSerializationTest.vala
@@ -230,7 +230,7 @@ class GomSerializationTest : GXmlTest  {
       assert ("<BookStand Classification=\"Science\"/>" in s);
       assert (bs.registers == null);
       var br = new BookRegister ();
-      bs.registers = new BookStand.Registers ();
+      bs.registers = new BookStand.Registers.initialize (bs);
       s = bs.to_string ();
       assert (s != null);
       GLib.message ("DOC:"+s);


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