mshtml: Add tests for supported interfaces.
This commit is contained in:
parent
3999069562
commit
13eb734251
|
@ -223,6 +223,9 @@ static HRESULT WINAPI ActiveScriptSite_QueryInterface(IActiveScriptSite *iface,
|
|||
}else if(IsEqualGUID(&IID_IActiveScriptSiteDebug32, riid)) {
|
||||
TRACE("(%p)->(IID_IActiveScriptSiteDebug32 %p)\n", This, ppv);
|
||||
*ppv = ACTSCPDBG32(This);
|
||||
}else if(IsEqualGUID(&IID_ICanHandleException, riid)) {
|
||||
TRACE("(%p)->(IID_ICanHandleException not supported %p)\n", This, ppv);
|
||||
return E_NOINTERFACE;
|
||||
}else {
|
||||
FIXME("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppv);
|
||||
return E_NOINTERFACE;
|
||||
|
|
|
@ -767,6 +767,8 @@ static HRESULT WINAPI ActiveScript_SetScriptSite(IActiveScript *iface, IActiveSc
|
|||
{
|
||||
IActiveScriptSiteInterruptPoll *poll;
|
||||
IActiveScriptSiteDebug *debug;
|
||||
IServiceProvider *service;
|
||||
ICanHandleException *canexpection;
|
||||
LCID lcid;
|
||||
HRESULT hres;
|
||||
|
||||
|
@ -790,6 +792,14 @@ static HRESULT WINAPI ActiveScript_SetScriptSite(IActiveScript *iface, IActiveSc
|
|||
if(SUCCEEDED(hres))
|
||||
IActiveScriptSiteDebug32_Release(debug);
|
||||
|
||||
hres = IActiveScriptSite_QueryInterface(pass, &IID_ICanHandleException, (void**)&canexpection);
|
||||
ok(hres == E_NOINTERFACE, "Could not get IID_ICanHandleException interface: %08x\n", hres);
|
||||
|
||||
hres = IActiveScriptSite_QueryInterface(pass, &IID_IServiceProvider, (void**)&service);
|
||||
todo_wine ok(hres == S_OK, "Could not get IServiceProvider interface: %08x\n", hres);
|
||||
if(SUCCEEDED(hres))
|
||||
IServiceProvider_Release(service);
|
||||
|
||||
site = pass;
|
||||
IActiveScriptSite_AddRef(site);
|
||||
return S_OK;
|
||||
|
|
Loading…
Reference in New Issue