aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xmerl/test/xmerl_SUITE.erl
diff options
context:
space:
mode:
authorDaniel White <[email protected]>2013-09-13 00:54:29 +1000
committerFredrik Gustafsson <[email protected]>2013-11-04 16:02:20 +0100
commit83ba8e6a9cc704bb3713b0a8f4e8c8a71b6dea0a (patch)
tree2953aa99119a8bff7e380cb8e7e170737cf916de /lib/xmerl/test/xmerl_SUITE.erl
parent90b1b181d4fb147dfb7403e910a057289bdd21b2 (diff)
downloadotp-83ba8e6a9cc704bb3713b0a8f4e8c8a71b6dea0a.tar.gz
otp-83ba8e6a9cc704bb3713b0a8f4e8c8a71b6dea0a.tar.bz2
otp-83ba8e6a9cc704bb3713b0a8f4e8c8a71b6dea0a.zip
xmerl: Add tests for XPath queries that resolve the context namespace
Ensures that both the original namespace prefix and a namespace prefix provided to the xmlContext will both return the same sets of nodes.
Diffstat (limited to 'lib/xmerl/test/xmerl_SUITE.erl')
-rw-r--r--lib/xmerl/test/xmerl_SUITE.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/xmerl/test/xmerl_SUITE.erl b/lib/xmerl/test/xmerl_SUITE.erl
index e21355f877..8432e66a97 100644
--- a/lib/xmerl/test/xmerl_SUITE.erl
+++ b/lib/xmerl/test/xmerl_SUITE.erl
@@ -42,7 +42,7 @@
%%----------------------------------------------------------------------
all() ->
[{group, cpd_tests}, xpath_text1, xpath_main,
- xpath_abbreviated_syntax, xpath_functions,
+ xpath_abbreviated_syntax, xpath_functions, xpath_namespaces,
{group, misc}, {group, eventp_tests},
{group, ticket_tests}, {group, app_test},
{group, appup_test}].
@@ -205,6 +205,11 @@ xpath_functions(Config) ->
?line file:set_cwd(filename:join(?config(data_dir,Config),xpath)),
?line ok = xpath_abbrev:functions().
+xpath_namespaces(suite) -> [];
+xpath_namespaces(Config) ->
+ ?line file:set_cwd(filename:join(?config(data_dir,Config),xpath)),
+ ?line ok = xpath_abbrev:namespaces().
+
%%----------------------------------------------------------------------
latin1_alias(suite) -> [];