mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
msxml: Tests for createTextNode.
This commit is contained in:
parent
43d92f4d76
commit
f35673e9e9
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user