From f35673e9e94f486c0b0a27af0c1eef8bc8b02660 Mon Sep 17 00:00:00 2001 From: Alistair Leslie-Hughes Date: Fri, 16 Nov 2007 09:55:51 +1100 Subject: [PATCH] msxml: Tests for createTextNode. --- dlls/msxml3/tests/domdoc.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c index bf272ff245..937e2fd698 100644 --- a/dlls/msxml3/tests/domdoc.c +++ b/dlls/msxml3/tests/domdoc.c @@ -333,6 +333,7 @@ static void test_domdoc( void ) IXMLDOMParseError *error; IXMLDOMElement *element = NULL; IXMLDOMNode *node; + IXMLDOMText *nodetext = NULL; VARIANT_BOOL b; VARIANT var; BSTR str; @@ -488,6 +489,15 @@ static void test_domdoc( void ) ok( code == 0, "code %ld\n", code ); IXMLDOMParseError_Release( error ); + /* test createTextNode */ + str = SysAllocString( szOpen ); + r = IXMLDOMDocument_createTextNode(doc, str, NULL); + ok( r == E_INVALIDARG, "returns %08x\n", r ); + r = IXMLDOMDocument_createTextNode(doc, str, &nodetext); + ok( r == S_OK, "returns %08x\n", r ); + IXMLDOMText_Release( nodetext ); + SysFreeString( str ); + r = IXMLDOMDocument_Release( doc ); ok( r == 0, "document ref count incorrect\n");