mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
msxml3: Implement IXMLDOMAttribute name property.
This commit is contained in:
parent
701991ca32
commit
e9063b7776
2 changed files with 15 additions and 2 deletions
|
@ -433,8 +433,9 @@ static HRESULT WINAPI domattr_get_name(
|
|||
IXMLDOMAttribute *iface,
|
||||
BSTR *p)
|
||||
{
|
||||
FIXME("\n");
|
||||
return E_NOTIMPL;
|
||||
/* name property returns the same value as nodeName */
|
||||
domattr *This = impl_from_IXMLDOMAttribute( iface );
|
||||
return IXMLDOMNode_get_nodeName( This->node, p );
|
||||
}
|
||||
|
||||
static HRESULT WINAPI domattr_get_value(
|
||||
|
|
|
@ -2128,6 +2128,18 @@ static void test_xmlTypes(void)
|
|||
ok( !lstrcmpW( str, _bstr_("attribute") ), "incorrect nodeTypeString string\n");
|
||||
SysFreeString(str);
|
||||
|
||||
/* test nodeName */
|
||||
hr = IXMLDOMAttribute_get_nodeName(pAttrubute, &str);
|
||||
ok(hr == S_OK, "ret %08x\n", hr );
|
||||
ok( !lstrcmpW( str, szAttribute ), "incorrect nodeName string\n");
|
||||
SysFreeString(str);
|
||||
|
||||
/* test name property */
|
||||
hr = IXMLDOMAttribute_get_name(pAttrubute, &str);
|
||||
ok(hr == S_OK, "ret %08x\n", hr );
|
||||
ok( !lstrcmpW( str, szAttribute ), "incorrect name string\n");
|
||||
SysFreeString(str);
|
||||
|
||||
hr = IXMLDOMAttribute_get_xml(pAttrubute, &str);
|
||||
ok(hr == S_OK, "ret %08x\n", hr );
|
||||
ok( !lstrcmpW( str, szAttributeXML ), "incorrect attribute xml\n");
|
||||
|
|
Loading…
Reference in a new issue