Commit d2520ccf authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

shdocvw: Added GetMiscStatus test.

parent d76ed6f6
......@@ -361,6 +361,22 @@ static HWND create_container_window(void)
CW_USEDEFAULT, NULL, NULL, NULL, NULL);
}
static void test_GetMiscStatus(IOleObject *oleobj)
{
DWORD st, i;
HRESULT hres;
for(i=0; i<10; i++) {
st = 0xdeadbeef;
hres = IOleObject_GetMiscStatus(oleobj, i, &st);
ok(hres == S_OK, "GetMiscStatus failed: %08lx\n", hres);
ok(st == (OLEMISC_SETCLIENTSITEFIRST|OLEMISC_ACTIVATEWHENVISIBLE|OLEMISC_INSIDEOUT
|OLEMISC_CANTLINKINSIDE|OLEMISC_RECOMPOSEONRESIZE),
"st=%08lx, expected OLEMISC_SETCLIENTSITEFIRST|OLEMISC_ACTIVATEWHENVISIBLE|"
"OLEMISC_INSIDEOUT|OLEMISC_CANTLINKINSIDE|OLEMISC_RECOMPOSEONRESIZE)\n", st);
}
}
static void test_ClientSite(IUnknown *unk, IOleClientSite *client)
{
IOleObject *oleobj;
......@@ -373,6 +389,8 @@ static void test_ClientSite(IUnknown *unk, IOleClientSite *client)
if(FAILED(hres))
return;
test_GetMiscStatus(oleobj);
hres = IUnknown_QueryInterface(unk, &IID_IOleInPlaceObject, (void**)&inplace);
ok(hres == S_OK, "QueryInterface(IID_OleInPlaceObject) failed: %08lx\n", hres);
if(FAILED(hres)) {
......
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