msxml3/tests: Fix interface leak and message typo.

This commit is contained in:
Nikolay Sivov 2010-01-15 00:44:19 +03:00 committed by Alexandre Julliard
parent f9cb63116d
commit e6edbc451d
1 changed files with 3 additions and 2 deletions

View File

@ -509,8 +509,8 @@ static char *list_to_string(IXMLDOMNodeList *list)
return buf; return buf;
} }
#define expect_node(node, expstr) { char str[4096]; node_to_string(node, str); ok(strcmp(str, expstr)==0, "Invalid node: %s, exptected %s\n", str, expstr); } #define expect_node(node, expstr) { char str[4096]; node_to_string(node, str); ok(strcmp(str, expstr)==0, "Invalid node: %s, expected %s\n", str, expstr); }
#define expect_list_and_release(list, expstr) { char *str = list_to_string(list); ok(strcmp(str, expstr)==0, "Invalid node list: %s, exptected %s\n", str, expstr); if (list) IXMLDOMNodeList_Release(list); } #define expect_list_and_release(list, expstr) { char *str = list_to_string(list); ok(strcmp(str, expstr)==0, "Invalid node list: %s, expected %s\n", str, expstr); if (list) IXMLDOMNodeList_Release(list); }
static void test_domdoc( void ) static void test_domdoc( void )
{ {
@ -1071,6 +1071,7 @@ static void test_domnode( void )
r = IXMLDOMNode_get_ownerDocument( element, &owner ); r = IXMLDOMNode_get_ownerDocument( element, &owner );
ok( r == S_OK, "get_ownerDocument return code\n"); ok( r == S_OK, "get_ownerDocument return code\n");
ok( owner != doc, "get_ownerDocument return\n"); ok( owner != doc, "get_ownerDocument return\n");
IXMLDOMDocument_Release(owner);
type = NODE_INVALID; type = NODE_INVALID;
r = IXMLDOMNode_get_nodeType( element, &type); r = IXMLDOMNode_get_nodeType( element, &type);