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

msxml3: Add IDispatchEx test.

parent 6bb30907
...@@ -1877,6 +1877,7 @@ static void test_IXMLDOMDocument2(void) ...@@ -1877,6 +1877,7 @@ static void test_IXMLDOMDocument2(void)
BSTR str; BSTR str;
IXMLDOMDocument *doc; IXMLDOMDocument *doc;
IXMLDOMDocument2 *doc2; IXMLDOMDocument2 *doc2;
IDispatchEx *dispex;
VARIANT var; VARIANT var;
int ref; int ref;
...@@ -1895,6 +1896,13 @@ static void test_IXMLDOMDocument2(void) ...@@ -1895,6 +1896,13 @@ static void test_IXMLDOMDocument2(void)
ok( r == S_OK, "ret %08x\n", r ); ok( r == S_OK, "ret %08x\n", r );
ok( doc == (IXMLDOMDocument*)doc2, "interfaces differ\n"); ok( doc == (IXMLDOMDocument*)doc2, "interfaces differ\n");
r = IXMLDOMDocument_QueryInterface( doc, &IID_IDispatchEx, (void**)&dispex );
ok( r == S_OK, "ret %08x\n", r );
if(r == S_OK)
{
IDispatchEx_Release(dispex);
}
/* we will check if the variant got cleared */ /* we will check if the variant got cleared */
ref = IXMLDOMDocument2_AddRef(doc2); ref = IXMLDOMDocument2_AddRef(doc2);
expect_eq(ref, 3, int, "%d"); /* doc, doc2, AddRef*/ expect_eq(ref, 3, int, "%d"); /* doc, doc2, AddRef*/
......
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