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

mshtml: Fixed tests on IE7.

parent 4e670c1c
...@@ -344,6 +344,8 @@ static HRESULT WINAPI BindStatusCallback_OnStopBinding(IBindStatusCallback *ifac ...@@ -344,6 +344,8 @@ static HRESULT WINAPI BindStatusCallback_OnStopBinding(IBindStatusCallback *ifac
TRACE("(%p)->(%08x %s)\n", This, hresult, debugstr_w(szError)); TRACE("(%p)->(%08x %s)\n", This, hresult, debugstr_w(szError));
/* NOTE: IE7 calls GetBindResult here */
if(This->binding) { if(This->binding) {
IBinding_Release(This->binding); IBinding_Release(This->binding);
This->binding = NULL; This->binding = NULL;
...@@ -687,6 +689,9 @@ HRESULT start_binding(HTMLDocument *doc, BSCallback *bscallback, IBindCtx *bctx) ...@@ -687,6 +689,9 @@ HRESULT start_binding(HTMLDocument *doc, BSCallback *bscallback, IBindCtx *bctx)
HRESULT hres; HRESULT hres;
bscallback->doc = doc; bscallback->doc = doc;
/* NOTE: IE7 calls IsSystemMoniker here*/
call_docview_84(doc); call_docview_84(doc);
if(bctx) { if(bctx) {
......
...@@ -1009,8 +1009,10 @@ static HRESULT WINAPI Moniker_BindToStorage(IMoniker *iface, IBindCtx *pbc, IMon ...@@ -1009,8 +1009,10 @@ static HRESULT WINAPI Moniker_BindToStorage(IMoniker *iface, IBindCtx *pbc, IMon
BINDSTATUS_ENDDOWNLOADDATA, NULL); BINDSTATUS_ENDDOWNLOADDATA, NULL);
ok(hres == S_OK, "OnProgress(BINDSTATUS_ENDDOWNLOADDATA) failed: %08x\n", hres); ok(hres == S_OK, "OnProgress(BINDSTATUS_ENDDOWNLOADDATA) failed: %08x\n", hres);
SET_EXPECT(GetBindResult);
hres = IBindStatusCallback_OnStopBinding(callback, S_OK, NULL); hres = IBindStatusCallback_OnStopBinding(callback, S_OK, NULL);
ok(hres == S_OK, "OnStopBinding failed: %08x\n", hres); ok(hres == S_OK, "OnStopBinding failed: %08x\n", hres);
SET_CALLED(GetBindResult); /* IE7 */
IBindStatusCallback_Release(callback); IBindStatusCallback_Release(callback);
...@@ -2637,6 +2639,7 @@ static void test_Load(IPersistMoniker *persist) ...@@ -2637,6 +2639,7 @@ static void test_Load(IPersistMoniker *persist)
} }
SET_EXPECT(OnChanged_READYSTATE); SET_EXPECT(OnChanged_READYSTATE);
SET_EXPECT(Exec_ShellDocView_84); SET_EXPECT(Exec_ShellDocView_84);
SET_EXPECT(IsSystemMoniker);
SET_EXPECT(BindToStorage); SET_EXPECT(BindToStorage);
SET_EXPECT(SetActiveObject); SET_EXPECT(SetActiveObject);
if(set_clientsite) { if(set_clientsite) {
...@@ -2674,6 +2677,7 @@ static void test_Load(IPersistMoniker *persist) ...@@ -2674,6 +2677,7 @@ static void test_Load(IPersistMoniker *persist)
container_locked = TRUE; container_locked = TRUE;
} }
CHECK_CALLED(OnChanged_READYSTATE); CHECK_CALLED(OnChanged_READYSTATE);
SET_CALLED(IsSystemMoniker); /* IE7 */
SET_CALLED(Exec_ShellDocView_84); SET_CALLED(Exec_ShellDocView_84);
CHECK_CALLED(BindToStorage); CHECK_CALLED(BindToStorage);
SET_CALLED(SetActiveObject); /* FIXME */ SET_CALLED(SetActiveObject); /* FIXME */
...@@ -3046,6 +3050,7 @@ static void test_exec_editmode(IUnknown *unk, BOOL loaded) ...@@ -3046,6 +3050,7 @@ static void test_exec_editmode(IUnknown *unk, BOOL loaded)
SET_EXPECT(Invoke_AMBIENT_SILENT); SET_EXPECT(Invoke_AMBIENT_SILENT);
SET_EXPECT(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED); SET_EXPECT(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED);
SET_EXPECT(OnChanged_READYSTATE); SET_EXPECT(OnChanged_READYSTATE);
SET_EXPECT(IsSystemMoniker);
SET_EXPECT(Exec_ShellDocView_84); SET_EXPECT(Exec_ShellDocView_84);
if(loaded) if(loaded)
SET_EXPECT(BindToStorage); SET_EXPECT(BindToStorage);
...@@ -3071,6 +3076,7 @@ static void test_exec_editmode(IUnknown *unk, BOOL loaded) ...@@ -3071,6 +3076,7 @@ static void test_exec_editmode(IUnknown *unk, BOOL loaded)
CHECK_CALLED(Invoke_AMBIENT_SILENT); CHECK_CALLED(Invoke_AMBIENT_SILENT);
CHECK_CALLED(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED); CHECK_CALLED(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED);
CHECK_CALLED(OnChanged_READYSTATE); CHECK_CALLED(OnChanged_READYSTATE);
SET_CALLED(IsSystemMoniker); /* IE7 */
SET_CALLED(Exec_ShellDocView_84); SET_CALLED(Exec_ShellDocView_84);
if(loaded) if(loaded)
CHECK_CALLED(BindToStorage); CHECK_CALLED(BindToStorage);
......
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