Commit 0a9a1bc9 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

shdocvw: Add test to show IServiceProvider is supported.

parent d019c010
......@@ -1990,6 +1990,19 @@ static void test_Navigate2(IUnknown *unk)
IWebBrowser2_Release(webbrowser);
}
static void test_IServiceProvider(IUnknown *unk)
{
IServiceProvider *servprov = (void*)0xdeadbeef;
HRESULT hres;
hres = IUnknown_QueryInterface(unk, &IID_IServiceProvider, (void**)&servprov);
todo_wine ok(hres == S_OK, "QueryInterface returned %08x, expected S_OK\n", hres);
if(FAILED(hres))
return;
IServiceProvider_Release(servprov);
}
static void test_QueryInterface(IUnknown *unk)
{
IQuickActivate *qa = (IQuickActivate*)0xdeadbeef;
......@@ -2060,6 +2073,7 @@ static void test_WebBrowser(void)
test_GetControlInfo(unk);
test_wb_funcs(unk, FALSE);
test_ConnectionPoint(unk, FALSE);
test_IServiceProvider(unk);
IWebBrowser2_Release(wb);
ref = IUnknown_Release(unk);
......
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