msxml3: Implement IXMLDOMProcessingInstruction_get_nodeName.

This commit is contained in:
Alistair Leslie-Hughes 2008-03-01 23:20:20 +11:00 committed by Alexandre Julliard
parent 56da338e5c
commit 6dee6819b2
2 changed files with 8 additions and 1 deletions

View File

@ -200,7 +200,8 @@ static HRESULT WINAPI xmlnode_get_nodeName(
break;
case XML_ATTRIBUTE_NODE:
case XML_ELEMENT_NODE:
str = This->node->name;
case XML_PI_NODE:
str = This->node->name;
break;
default:
FIXME("nodeName not mapped correctly (%d)\n", This->node->type);

View File

@ -745,6 +745,12 @@ static void test_domdoc( void )
r = IXMLDOMProcessingInstruction_put_data(nodePI, _bstr_("version=\"1.0\" encoding=\"UTF-8\""));
ok(r == E_FAIL, "ret %08x\n", r );
/* test get nodeName */
r = IXMLDOMProcessingInstruction_get_nodeName(nodePI, &str);
ok( !lstrcmpW( str, _bstr_("xml") ), "incorrect nodeName string\n");
ok(r == S_OK, "ret %08x\n", r );
SysFreeString(str);
IXMLDOMProcessingInstruction_Release(nodePI);
}