Commit 2841755c authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msxml3: Added IDispatchEx QueryInterface test.

parent 3e3a5b18
...@@ -26,6 +26,7 @@ ...@@ -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) ...@@ -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) ...@@ -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) ...@@ -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 @@ ...@@ -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"
......
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