Alistair Leslie-Hughes : msxml3: Implement IXMLDOMCDATASection_get_nodeValue.
Alexandre Julliard
julliard at winehq.org
Mon Mar 3 06:21:21 CST 2008
Module: wine
Branch: master
Commit: c43b0706a308683c032fa83fa0b00603b5072e48
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c43b0706a308683c032fa83fa0b00603b5072e48
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Sat Mar 1 22:51:00 2008 +1100
msxml3: Implement IXMLDOMCDATASection_get_nodeValue.
---
dlls/msxml3/node.c | 1 +
dlls/msxml3/tests/domdoc.c | 7 +++++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c
index 676209e..eff70a5 100644
--- a/dlls/msxml3/node.c
+++ b/dlls/msxml3/node.c
@@ -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:
diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c
index 18f5c32..0b9ab20 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -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);
}
More information about the wine-cvs
mailing list