Commit ff0bc51f authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msxml3: Test that IXMLHTTPRequest doesn't support IDispatchEx.

parent 674fb3c0
...@@ -607,13 +607,10 @@ static HRESULT WINAPI httprequest_GetTypeInfo(IXMLHTTPRequest *iface, UINT iTInf ...@@ -607,13 +607,10 @@ static HRESULT WINAPI httprequest_GetTypeInfo(IXMLHTTPRequest *iface, UINT iTInf
LCID lcid, ITypeInfo **ppTInfo) LCID lcid, ITypeInfo **ppTInfo)
{ {
httprequest *This = impl_from_IXMLHTTPRequest( iface ); httprequest *This = impl_from_IXMLHTTPRequest( iface );
HRESULT hr;
TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo); TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
hr = get_typeinfo(IXMLHTTPRequest_tid, ppTInfo); return get_typeinfo(IXMLHTTPRequest_tid, ppTInfo);
return hr;
} }
static HRESULT WINAPI httprequest_GetIDsOfNames(IXMLHTTPRequest *iface, REFIID riid, static HRESULT WINAPI httprequest_GetIDsOfNames(IXMLHTTPRequest *iface, REFIID riid,
......
...@@ -10671,6 +10671,7 @@ static void test_dispex(void) ...@@ -10671,6 +10671,7 @@ static void test_dispex(void)
IXMLDOMParseError *error; IXMLDOMParseError *error;
IXMLDOMNamedNodeMap *map; IXMLDOMNamedNodeMap *map;
IXMLDOMDocument *doc; IXMLDOMDocument *doc;
IXMLHTTPRequest *req;
IXMLDOMElement *elem; IXMLDOMElement *elem;
IDispatchEx *dispex; IDispatchEx *dispex;
IXMLDOMNode *node; IXMLDOMNode *node;
...@@ -10772,6 +10773,17 @@ static void test_dispex(void) ...@@ -10772,6 +10773,17 @@ static void test_dispex(void)
IXMLDOMElement_Release(elem); IXMLDOMElement_Release(elem);
IXMLDOMDocument_Release(doc); IXMLDOMDocument_Release(doc);
/* IXMLHTTPRequest */
hr = CoCreateInstance(&CLSID_XMLHTTPRequest, NULL, CLSCTX_INPROC_SERVER,
&IID_IXMLHttpRequest, (void**)&req);
if (hr == S_OK)
{
hr = IXMLHTTPRequest_QueryInterface(req, &IID_IDispatchEx, (void**)&dispex);
EXPECT_HR(hr, E_NOINTERFACE);
IXMLHTTPRequest_Release(req);
}
free_bstrs(); free_bstrs();
} }
......
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