diff options
author | Matthias Loy <matthias.loy@hbm.com> | 2014-11-03 20:23:35 +0100 |
---|---|---|
committer | Matthias Loy <matthias.loy@hbm.com> | 2014-11-03 20:23:35 +0100 |
commit | 1912894f5331a29de37fb13469c6eea16e51d4e4 (patch) | |
tree | 8966cd9b2824407bd90ea08b456438cbdb67eaa5 /tests/test_dom_modify.cpp | |
parent | 837ced350c5123c21c32154f1f2dc483238f7629 (diff) | |
parent | 3950ee0433aaed3c35eaee7548bae5b00ee22a80 (diff) |
:Merge remote-tracking branch 'upstream/master'
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")); |