Nikolay Sivov : msxml3: Add a couple of tests for unusual behaviour of ISupporterrorInfo.
Alexandre Julliard
julliard at winehq.org
Tue Nov 22 13:06:45 CST 2011
Module: wine
Branch: master
Commit: 63e6dbc139b88e42f8fb96bcb08b30eed3529028
URL: http://source.winehq.org/git/wine.git/?a=commit;h=63e6dbc139b88e42f8fb96bcb08b30eed3529028
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Tue Nov 22 21:05:19 2011 +0300
msxml3: Add a couple of tests for unusual behaviour of ISupporterrorInfo.
---
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 e72e1f3..8757886 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -10739,6 +10739,7 @@ static void test_supporterrorinfo(void)
IXMLDOMDocument *doc;
IUnknown *unk;
REFIID *iid;
+ void *dummy;
HRESULT hr;
doc = create_document_version(60, &IID_IXMLDOMDocument3);
@@ -10756,6 +10757,13 @@ static void test_supporterrorinfo(void)
hr = IXMLDOMDocument_QueryInterface(doc, &IID_ISupportErrorInfo, (void**)&info2);
EXPECT_HR(hr, S_OK);
ok(errorinfo != info2, "got %p, %p\n", info2, errorinfo);
+
+ /* error interface can't be queried back for DOM interface */
+ hr = ISupportErrorInfo_QueryInterface(info2, &IID_IXMLDOMDocument, &dummy);
+ EXPECT_HR(hr, E_NOINTERFACE);
+ hr = ISupportErrorInfo_QueryInterface(info2, &IID_IXMLDOMNode, &dummy);
+ EXPECT_HR(hr, E_NOINTERFACE);
+
ISupportErrorInfo_Release(info2);
iid = iids;
More information about the wine-cvs
mailing list