Commit e55cae42 authored by Daniel Lehman's avatar Daniel Lehman Committed by Alexandre Julliard

msxml3/tests: Add tests for default namespace.

parent 712b33c1
......@@ -13676,6 +13676,7 @@ static void test_namespaces_as_attributes(void)
const char *uris[3];
const char *texts[3];
const char *xmls[3];
BOOL todo;
};
static const struct test tests[] = {
{
......@@ -13707,6 +13708,17 @@ static void test_namespaces_as_attributes(void)
{ "nshref" }, /* text */
{ "xmlns:ns=\"nshref\"" }, /* xml */
},
/* default namespace */
{
"<a xmlns=\"nshref\" />", 1,
{ "xmlns" }, /* nodeName */
{ "xmlns" }, /* prefix */
{ "" }, /* baseName */
{ "" }, /* namespaceURI */
{ "nshref" }, /* text */
{ "xmlns=\"nshref\"" }, /* xml */
TRUE, /* todo */
},
/* no properties or namespaces */
{
"<a />", 0,
......@@ -13760,7 +13772,9 @@ static void test_namespaces_as_attributes(void)
{
item = NULL;
hr = IXMLDOMNamedNodeMap_get_item(map, i, &item);
todo_wine_if(test->todo)
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
if (hr != S_OK) continue;
str = NULL;
hr = IXMLDOMNode_get_nodeName(item, &str);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment