diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-05-10 17:14:48 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-05-10 17:14:48 +0000 |
commit | b47b4905a6139461ec39615317705d90a1599c0c (patch) | |
tree | d420672d733b11cb6c8d56522150e8a3a7a97154 /tests/test_dom_modify.cpp | |
parent | 8afeb9d71acebb59411d3adaa46744569d8f40e7 (diff) |
Added more tests
git-svn-id: http://pugixml.googlecode.com/svn/trunk@407 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test_dom_modify.cpp')
-rw-r--r-- | tests/test_dom_modify.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_dom_modify.cpp b/tests/test_dom_modify.cpp index 780608f..7d30420 100644 --- a/tests/test_dom_modify.cpp +++ b/tests/test_dom_modify.cpp @@ -414,6 +414,16 @@ TEST_XML(dom_node_remove_child_complex, "<node id='1'><n1 id1='1' id2='2'/><n2/> CHECK_NODE(doc, STR(""));
}
+TEST_XML(dom_node_remove_child_complex_allocated, "<node id='1'><n1 id1='1' id2='2'/><n2/><n3/><child><n4/></child></node>")
+{
+ doc.append_copy(doc.child(STR("node")));
+
+ doc.remove_child(STR("node"));
+ doc.remove_child(STR("node"));
+
+ CHECK_NODE(doc, STR(""));
+}
+
TEST_XML(dom_node_append_copy, "<node>foo<child/></node>")
{
CHECK(xml_node().append_copy(xml_node()) == xml_node());
|