mirror of
https://github.com/RPCS3/pugixml.git
synced 2026-07-19 22:15:19 -04:00
Added xml_document::document_element function
git-svn-id: http://pugixml.googlecode.com/svn/trunk@768 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
@@ -866,3 +866,13 @@ TEST(document_load_exceptions)
|
||||
CHECK(thrown);
|
||||
}
|
||||
#endif
|
||||
|
||||
TEST_XML_FLAGS(document_element, "<?xml version='1.0'?><node><child/></node><!---->", parse_default | parse_declaration | parse_comments)
|
||||
{
|
||||
CHECK(doc.document_element() == doc.child(STR("node")));
|
||||
}
|
||||
|
||||
TEST_XML_FLAGS(document_element_absent, "<!---->", parse_comments)
|
||||
{
|
||||
CHECK(doc.document_element() == xml_node());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user