msxml3: Implement IXMLDOMProcessingInstruction_get_nodeName.
This commit is contained in:
parent
56da338e5c
commit
6dee6819b2
|
@ -200,6 +200,7 @@ static HRESULT WINAPI xmlnode_get_nodeName(
|
||||||
break;
|
break;
|
||||||
case XML_ATTRIBUTE_NODE:
|
case XML_ATTRIBUTE_NODE:
|
||||||
case XML_ELEMENT_NODE:
|
case XML_ELEMENT_NODE:
|
||||||
|
case XML_PI_NODE:
|
||||||
str = This->node->name;
|
str = This->node->name;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|
|
@ -745,6 +745,12 @@ static void test_domdoc( void )
|
||||||
r = IXMLDOMProcessingInstruction_put_data(nodePI, _bstr_("version=\"1.0\" encoding=\"UTF-8\""));
|
r = IXMLDOMProcessingInstruction_put_data(nodePI, _bstr_("version=\"1.0\" encoding=\"UTF-8\""));
|
||||||
ok(r == E_FAIL, "ret %08x\n", r );
|
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);
|
IXMLDOMProcessingInstruction_Release(nodePI);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue