[gxml] Ported tests SerializableTreeMap to TwDocument
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] Ported tests SerializableTreeMap to TwDocument
- Date: Tue, 12 May 2015 15:14:04 +0000 (UTC)
commit c3feeab38485386c36682440d854ec9efb32c177
Author: Daniel Espinosa <esodan gmail com>
Date: Tue May 12 10:12:49 2015 -0500
Ported tests SerializableTreeMap to TwDocument
test/SerializableGeeTreeMapTest.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/test/SerializableGeeTreeMapTest.vala b/test/SerializableGeeTreeMapTest.vala
index d3a1f13..839eae7 100644
--- a/test/SerializableGeeTreeMapTest.vala
+++ b/test/SerializableGeeTreeMapTest.vala
@@ -101,7 +101,7 @@ class SerializableGeeTreeMapTest : GXmlTest
var o2 = new Space.named ("Small");
c.set (o1.name, o1);
c.set (o2.name, o2);
- var doc = new xDocument ();
+ var doc = new TwDocument ();
var root = doc.create_element ("root");
doc.childs.add (root);
c.serialize ((xNode) root);
@@ -210,14 +210,14 @@ class SerializableGeeTreeMapTest : GXmlTest
c.storage = new Space.Collection ();
c.storage.set (o1.name, o1);
c.storage.set (o2.name, o2);
- var doc = new xDocument ();
+ var doc = new TwDocument ();
c.serialize (doc);
if (doc.root == null) {
stdout.printf (@"ERROR: doc have no root node\n$(doc)\n");
assert_not_reached ();
}
if (doc.root.name != "spacecontainer") {
- stdout.printf (@"ERROR: bad doc root node's name: $(doc.document_element.node_name)\n$(doc)\n");
+ stdout.printf (@"ERROR: bad doc root node's name: $(doc.root.name)\n$(doc)\n");
assert_not_reached ();
}
var root = doc.root;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]