summaryrefslogtreecommitdiff
path: root/tests/test_xpath_paths.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-11-04 19:23:20 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-11-04 19:23:20 +0000
commit6948d1f171e02558a846e63aa58ffc06547eba87 (patch)
tree0d80f719b8464715ea5b66406c4b07e9cbc61846 /tests/test_xpath_paths.cpp
parent0092960c9e792c2c89f9f0d8213f855fd4afe634 (diff)
tests: Completed function library tests, added namespace axis and variable reference tests
git-svn-id: http://pugixml.googlecode.com/svn/trunk@204 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'tests/test_xpath_paths.cpp')
-rw-r--r--tests/test_xpath_paths.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_xpath_paths.cpp b/tests/test_xpath_paths.cpp
index 31704df..e44045d 100644
--- a/tests/test_xpath_paths.cpp
+++ b/tests/test_xpath_paths.cpp
@@ -136,6 +136,13 @@ TEST_XML(xpath_paths_axes_attribute, "<node attr1='value' attr2='value'><child a
CHECK_XPATH_NODESET(n.child("another"), "attribute:: node()"); // namespace nodes are not attributes
}
+TEST_XML(xpath_paths_axes_namespace, "<node xmlns:foo='bar'/>")
+{
+ xml_node n = doc.child("node");
+
+ CHECK_XPATH_NODESET(n, "namespace:: node()"); // namespace nodes are not supported
+}
+
TEST_XML(xpath_paths_axes_self, "<node attr='value'><child attr='value'><subchild/></child><another><subchild/></another><last/></node>")
{
doc.precompute_document_order();