From da7c766bb5a4fb135cb9610cbf3a74675e315aaf Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Wed, 4 Mar 2015 12:29:58 +0100 Subject: [PATCH] ieframe/tests: Added more OleObject_Close tests. --- dlls/ieframe/tests/webbrowser.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/dlls/ieframe/tests/webbrowser.c b/dlls/ieframe/tests/webbrowser.c index 7f45182a728..d86faf8a1c6 100644 --- a/dlls/ieframe/tests/webbrowser.c +++ b/dlls/ieframe/tests/webbrowser.c @@ -3531,6 +3531,24 @@ static void test_Close(IWebBrowser2 *wb, BOOL do_download) ok(hres == S_OK, "hres = %x\n", hres); ok(!ocs, "ocs != NULL\n"); + SET_EXPECT(GetContainer); + SET_EXPECT(Site_GetWindow); + SET_EXPECT(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED); + SET_EXPECT(Invoke_AMBIENT_SILENT); + hres = IOleObject_DoVerb(oo, OLEIVERB_HIDE, NULL, (IOleClientSite*)0xdeadbeef, + 0, (HWND)0xdeadbeef, NULL); + ok(hres == S_OK, "DoVerb failed: %08x\n", hres); + todo_wine CHECK_CALLED(GetContainer); + todo_wine CHECK_CALLED(Site_GetWindow); + todo_wine CHECK_CALLED(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED); + todo_wine CHECK_CALLED(Invoke_AMBIENT_SILENT); + + hres = IOleObject_GetClientSite(oo, &ocs); + ok(hres == S_OK, "hres = %x\n", hres); + todo_wine ok(ocs == &ClientSite, "ocs != &ClientSite\n"); + if(ocs) + IOleClientSite_Release(ocs); + hres = IOleObject_Close(oo, OLECLOSE_NOSAVE); ok(hres == S_OK, "OleObject_Close failed: %x\n", hres);