msxml3: Implement IXMLDOMComment_get_nodeValue.
This commit is contained in:
parent
84a5eca28e
commit
a1f5fef880
|
@ -251,6 +251,7 @@ static HRESULT WINAPI xmlnode_get_nodeValue(
|
|||
|
||||
switch ( This->node->type )
|
||||
{
|
||||
case XML_COMMENT_NODE:
|
||||
case XML_PI_NODE:
|
||||
case XML_ATTRIBUTE_NODE:
|
||||
{
|
||||
|
|
|
@ -2098,6 +2098,13 @@ static void test_xmlTypes(void)
|
|||
hr = IXMLDOMComment_put_data(pComment, _bstr_("This &is a ; test <>\\"));
|
||||
ok(hr == S_OK, "ret %08x\n", hr );
|
||||
|
||||
/* get data Tests */
|
||||
hr = IXMLDOMComment_get_nodeValue(pComment, &v);
|
||||
ok(hr == S_OK, "ret %08x\n", hr );
|
||||
ok( V_VT(&v) == VT_BSTR, "incorrect dataType type\n");
|
||||
ok( !lstrcmpW( V_BSTR(&v), _bstr_("This &is a ; test <>\\") ), "incorrect get_nodeValue string\n");
|
||||
VariantClear(&v);
|
||||
|
||||
/* Confirm XML text is good */
|
||||
hr = IXMLDOMComment_get_xml(pComment, &str);
|
||||
ok(hr == S_OK, "ret %08x\n", hr );
|
||||
|
|
Loading…
Reference in New Issue