diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2014-11-04 09:58:04 +0100 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2014-11-04 09:58:04 +0100 |
commit | b2a0ae13b61ba8cc9834f01851e2a643bae534fe (patch) | |
tree | 5f9b01ae02b280115f0733fd2d78a895edce5c35 /tests/test_dom_modify.cpp | |
parent | 650c67a663515a3b76144a7dc16b26df0a8f2372 (diff) | |
parent | 3950ee0433aaed3c35eaee7548bae5b00ee22a80 (diff) |
Merge branch 'master' into compact
Diffstat (limited to 'tests/test_dom_modify.cpp')
-rw-r--r-- | tests/test_dom_modify.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_dom_modify.cpp b/tests/test_dom_modify.cpp index 07fe6dc..45cf3ea 100644 --- a/tests/test_dom_modify.cpp +++ b/tests/test_dom_modify.cpp @@ -1091,6 +1091,19 @@ TEST_XML(dom_node_append_buffer_fragment, "<node />") CHECK_NODE(doc, STR("<node>1234</node>")); } +TEST_XML(dom_node_append_buffer_empty, "<node />") +{ + xml_node node = doc.child(STR("node")); + + CHECK(node.append_buffer("", 0).status == status_no_document_element); + CHECK(node.append_buffer("", 0, parse_fragment).status == status_ok); + + CHECK(node.append_buffer(0, 0).status == status_no_document_element); + CHECK(node.append_buffer(0, 0, parse_fragment).status == status_ok); + + CHECK_NODE(doc, STR("<node />")); +} + TEST_XML(dom_node_prepend_move, "<node>foo<child/></node>") { xml_node child = doc.child(STR("node")).child(STR("child")); |