msxml3: Implement IXMLDOMComment_get_nodeValue.

This commit is contained in:
Alistair Leslie-Hughes 2008-02-28 21:03:59 +11:00 committed by Alexandre Julliard
parent 84a5eca28e
commit a1f5fef880
2 changed files with 8 additions and 0 deletions

View File

@ -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:
{

View File

@ -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 );