msxml3: Added IDispatchEx QueryInterface test.
This commit is contained in:
parent
3e3a5b187e
commit
2841755c16
|
@ -26,6 +26,7 @@
|
||||||
#include "ole2.h"
|
#include "ole2.h"
|
||||||
#include "xmldom.h"
|
#include "xmldom.h"
|
||||||
#include "msxml2.h"
|
#include "msxml2.h"
|
||||||
|
#include "dispex.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
@ -1298,6 +1299,7 @@ static void test_refs(void)
|
||||||
|
|
||||||
r = IXMLDOMElement_get_childNodes( element, &node_list );
|
r = IXMLDOMElement_get_childNodes( element, &node_list );
|
||||||
ok( r == S_OK, "rets %08x\n", r);
|
ok( r == S_OK, "rets %08x\n", r);
|
||||||
|
|
||||||
ref = IXMLDOMNodeList_AddRef( node_list );
|
ref = IXMLDOMNodeList_AddRef( node_list );
|
||||||
ok( ref == 2, "ref %d\n", ref );
|
ok( ref == 2, "ref %d\n", ref );
|
||||||
IXMLDOMNodeList_Release( node_list );
|
IXMLDOMNodeList_Release( node_list );
|
||||||
|
@ -1518,6 +1520,7 @@ static void test_getElementsByTagName(void)
|
||||||
VARIANT_BOOL b;
|
VARIANT_BOOL b;
|
||||||
IXMLDOMDocument *doc;
|
IXMLDOMDocument *doc;
|
||||||
IXMLDOMNodeList *node_list;
|
IXMLDOMNodeList *node_list;
|
||||||
|
IDispatchEx *dispex;
|
||||||
long len;
|
long len;
|
||||||
|
|
||||||
r = CoCreateInstance( &CLSID_DOMDocument, NULL,
|
r = CoCreateInstance( &CLSID_DOMDocument, NULL,
|
||||||
|
@ -1537,6 +1540,13 @@ static void test_getElementsByTagName(void)
|
||||||
r = IXMLDOMNodeList_get_length( node_list, &len );
|
r = IXMLDOMNodeList_get_length( node_list, &len );
|
||||||
ok( r == S_OK, "ret %08x\n", r );
|
ok( r == S_OK, "ret %08x\n", r );
|
||||||
ok( len == 6, "len %ld\n", len );
|
ok( len == 6, "len %ld\n", len );
|
||||||
|
|
||||||
|
r = IXMLDOMNodeList_QueryInterface( node_list, &IID_IDispatchEx, (void**)&dispex );
|
||||||
|
ok( r == S_OK, "rets %08x\n", r);
|
||||||
|
if( r == S_OK )
|
||||||
|
IDispatchEx_Release( dispex );
|
||||||
|
|
||||||
|
|
||||||
IXMLDOMNodeList_Release( node_list );
|
IXMLDOMNodeList_Release( node_list );
|
||||||
SysFreeString( str );
|
SysFreeString( str );
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include "ole2.h"
|
#include "ole2.h"
|
||||||
#include "xmldom.h"
|
#include "xmldom.h"
|
||||||
#include "msxml2.h"
|
#include "msxml2.h"
|
||||||
|
#include "dispex.h"
|
||||||
|
|
||||||
#include "wine/test.h"
|
#include "wine/test.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue