Commit f35673e9 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

msxml: Tests for createTextNode.

parent 43d92f4d
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment