Alistair Leslie-Hughes : msxml3: Add IDispatchEx test.
Alexandre Julliard
julliard at winehq.org
Wed Sep 3 07:44:06 CDT 2008
Module: wine
Branch: master
Commit: 5e1ac66b258415a33d96bb983c7e2ec3c7eea968
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5e1ac66b258415a33d96bb983c7e2ec3c7eea968
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Wed Sep 3 20:25:28 2008 +1000
msxml3: Add IDispatchEx test.
---
dlls/msxml3/tests/domdoc.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c
index 8af6b02..2bff372 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -1877,6 +1877,7 @@ static void test_IXMLDOMDocument2(void)
BSTR str;
IXMLDOMDocument *doc;
IXMLDOMDocument2 *doc2;
+ IDispatchEx *dispex;
VARIANT var;
int ref;
@@ -1895,6 +1896,13 @@ static void test_IXMLDOMDocument2(void)
ok( r == S_OK, "ret %08x\n", r );
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 */
ref = IXMLDOMDocument2_AddRef(doc2);
expect_eq(ref, 3, int, "%d"); /* doc, doc2, AddRef*/
More information about the wine-cvs
mailing list