msxml3: Implement IXMLDOMCDATASection_get_nodeValue.
This commit is contained in:
parent
f9c5856c8c
commit
c43b0706a3
|
@ -251,6 +251,7 @@ static HRESULT WINAPI xmlnode_get_nodeValue(
|
|||
|
||||
switch ( This->node->type )
|
||||
{
|
||||
case XML_CDATA_SECTION_NODE:
|
||||
case XML_COMMENT_NODE:
|
||||
case XML_PI_NODE:
|
||||
case XML_ATTRIBUTE_NODE:
|
||||
|
|
|
@ -2323,6 +2323,7 @@ static void test_xmlTypes(void)
|
|||
if(hr == S_OK)
|
||||
{
|
||||
IXMLDOMNode *pNextChild = (IXMLDOMNode *)0x1;
|
||||
VARIANT var;
|
||||
|
||||
hr = IXMLDOMElement_appendChild(pRoot, (IXMLDOMNode*)pCDataSec, NULL);
|
||||
ok(hr == S_OK, "ret %08x\n", hr );
|
||||
|
@ -2388,6 +2389,12 @@ static void test_xmlTypes(void)
|
|||
ok(hr == S_OK, "ret %08x\n", hr );
|
||||
ok(len == 21, "expected 21 got %ld\n", len);
|
||||
|
||||
/* test length property */
|
||||
hr = IXMLDOMCDATASection_get_nodeValue(pComment, &var);
|
||||
ok(hr == S_OK, "ret %08x\n", hr );
|
||||
ok( !lstrcmpW( str, _bstr_("This &is a ; test <>\\") ), "incorrect text string\n");
|
||||
VariantClear(&var);
|
||||
|
||||
IXMLDOMCDATASection_Release(pCDataSec);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue