[PATCH] Implement IXMLDOMCDATASection get_nodeValue
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Sat Mar 1 05:51:00 CST 2008
---
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 0e50a8d..c5d18ec 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 );
@@ -2387,6 +2388,12 @@ static void test_xmlTypes(void)
hr = IXMLDOMCDATASection_get_length(pComment, &len);
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);
}
--
1.5.4.1
--------------060603030300060909090804--
More information about the wine-patches
mailing list