msxml: Tests for createTextNode.

This commit is contained in:
Alistair Leslie-Hughes 2007-11-16 09:55:51 +11:00 committed by Alexandre Julliard
parent 43d92f4d76
commit f35673e9e9

View File

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