summaryrefslogtreecommitdiff
path: root/tests/test_deprecated.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-10 16:43:07 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-05-10 16:43:07 +0000
commit8afeb9d71acebb59411d3adaa46744569d8f40e7 (patch)
tree646f7f4509d74e5d75908a25879a7ad131053eee /tests/test_deprecated.cpp
parenta6dc5ff70b4940e3b6e7eb2cb0f046a85697a2fa (diff)
Added more tests
git-svn-id: http://pugixml.googlecode.com/svn/trunk@406 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test_deprecated.cpp')
-rw-r--r--tests/test_deprecated.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_deprecated.cpp b/tests/test_deprecated.cpp
index 8565f96..fe88f63 100644
--- a/tests/test_deprecated.cpp
+++ b/tests/test_deprecated.cpp
@@ -167,6 +167,7 @@ TEST_XML(dom_node_wildcard_star, "<node cd='1'/>")
CHECK(node.attribute_w(STR("*?*d*")).as_int() == 1);
}
+// parse_wnorm_attribute flag
TEST(parse_attribute_wnorm)
{
xml_document doc;
@@ -201,3 +202,12 @@ TEST(parse_attribute_variations_wnorm)
}
}
+// document order
+TEST_XML(document_order_coverage, "<node id='1'/>")
+{
+ xml_document doc;
+ doc.precompute_document_order();
+
+ CHECK(doc.child("node").document_order() == 0);
+ CHECK(doc.child("node").attribute("id").document_order() == 0);
+}