mshtml: Use CLEAR_CALLED instead of SET_CALLED in some places.

This commit is contained in:
Jacek Caban 2011-11-18 13:52:08 +01:00 committed by Alexandre Julliard
parent 0574a30f65
commit 2a9d63f822
1 changed files with 20 additions and 23 deletions

View File

@ -4753,7 +4753,7 @@ static void test_Load(IPersistMoniker *persist, IMoniker *mon)
} }
CHECK_CALLED(OnChanged_READYSTATE); CHECK_CALLED(OnChanged_READYSTATE);
CHECK_CALLED(Invoke_OnReadyStateChange_Loading); CHECK_CALLED(Invoke_OnReadyStateChange_Loading);
SET_CALLED(IsSystemMoniker); /* IE7 */ CLEAR_CALLED(IsSystemMoniker); /* IE7 */
SET_CALLED(Exec_ShellDocView_84); SET_CALLED(Exec_ShellDocView_84);
if(mon == &Moniker) if(mon == &Moniker)
CHECK_CALLED(BindToStorage); CHECK_CALLED(BindToStorage);
@ -4890,7 +4890,7 @@ static void test_download(DWORD flags)
if(is_js) if(is_js)
CHECK_CALLED(GetExternal); CHECK_CALLED(GetExternal);
CHECK_CALLED(OnViewChange); CHECK_CALLED(OnViewChange);
SET_CALLED(GetDropTarget); CLEAR_CALLED(GetDropTarget);
if(flags & DWL_TRYCSS) if(flags & DWL_TRYCSS)
SET_CALLED(Exec_ShellDocView_84); SET_CALLED(Exec_ShellDocView_84);
if(flags & DWL_CSS) { if(flags & DWL_CSS) {
@ -4919,33 +4919,30 @@ static void test_download(DWORD flags)
if(flags & DWL_HTTP) { if(flags & DWL_HTTP) {
todo_wine CHECK_CALLED(OnChanged_1012); todo_wine CHECK_CALLED(OnChanged_1012);
todo_wine CHECK_CALLED(Exec_HTTPEQUIV); todo_wine CHECK_CALLED(Exec_HTTPEQUIV);
if(support_wbapp) todo_wine CHECK_CALLED(Exec_SETTITLE);
CHECK_CALLED(Exec_SETTITLE);
else
todo_wine CHECK_CALLED(Exec_SETTITLE);
} }
if(!is_js) { if(!is_js) {
CHECK_CALLED(OnChanged_1005); CHECK_CALLED(OnChanged_1005);
CHECK_CALLED(OnChanged_READYSTATE); CHECK_CALLED(OnChanged_READYSTATE);
CHECK_CALLED(Exec_SETPROGRESSPOS); CHECK_CALLED(Exec_SETPROGRESSPOS);
}else { }else {
SET_CALLED(OnChanged_READYSTATE); /* sometimes called */ CLEAR_CALLED(OnChanged_READYSTATE); /* sometimes called */
todo_wine CHECK_CALLED(Exec_SETPROGRESSPOS); todo_wine CHECK_CALLED(Exec_SETPROGRESSPOS);
} }
if(!(flags & DWL_EMPTY)) if(!(flags & DWL_EMPTY))
CHECK_CALLED(Exec_SETDOWNLOADSTATE_0); CHECK_CALLED(Exec_SETDOWNLOADSTATE_0);
SET_CALLED(Exec_ShellDocView_103); CLEAR_CALLED(Exec_ShellDocView_103);
SET_CALLED(Exec_ShellDocView_105); CLEAR_CALLED(Exec_ShellDocView_105);
SET_CALLED(Exec_ShellDocView_140); CLEAR_CALLED(Exec_ShellDocView_140);
if(!is_js) { if(!is_js) {
CHECK_CALLED(Exec_MSHTML_PARSECOMPLETE); CHECK_CALLED(Exec_MSHTML_PARSECOMPLETE);
CHECK_CALLED(Exec_HTTPEQUIV_DONE); CHECK_CALLED(Exec_HTTPEQUIV_DONE);
} }
SET_CALLED(SetStatusText); SET_CALLED(SetStatusText);
if(nav_url || support_wbapp) { /* avoiding race, FIXME: find better way */ if(nav_url || support_wbapp) { /* avoiding race, FIXME: find better way */
SET_CALLED(UpdateUI); CLEAR_CALLED(UpdateUI);
SET_CALLED(Exec_UPDATECOMMANDS); CLEAR_CALLED(Exec_UPDATECOMMANDS);
SET_CALLED(Exec_SETTITLE); CLEAR_CALLED(Exec_SETTITLE);
todo_wine CHECK_CALLED_BROKEN(UpdateBackForwardState); todo_wine CHECK_CALLED_BROKEN(UpdateBackForwardState);
} }
if(!is_js) { if(!is_js) {
@ -5076,20 +5073,20 @@ static void test_put_href(IHTMLDocument2 *doc, BOOL use_replace, const char *hre
CHECK_CALLED(Navigate); CHECK_CALLED(Navigate);
} }
}else { }else {
SET_CALLED(TranslateUrl); CLEAR_CALLED(TranslateUrl);
if(support_wbapp) { if(support_wbapp) {
SET_CALLED(FireBeforeNavigate2); CLEAR_CALLED(FireBeforeNavigate2);
SET_CALLED(Exec_ShellDocView_67); SET_CALLED(Exec_ShellDocView_67);
if(!is_hash) { if(!is_hash) {
SET_CALLED(Invoke_AMBIENT_SILENT); CLEAR_CALLED(Invoke_AMBIENT_SILENT);
SET_CALLED(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED); CLEAR_CALLED(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED);
SET_CALLED(Exec_ShellDocView_63); CLEAR_CALLED(Exec_ShellDocView_63);
}else { }else {
SET_CALLED(FireNavigateComplete2); CLEAR_CALLED(FireNavigateComplete2);
SET_CALLED(FireDocumentComplete); CLEAR_CALLED(FireDocumentComplete);
} }
}else { }else {
SET_CALLED(Navigate); CLEAR_CALLED(Navigate);
} }
} }
@ -5493,7 +5490,7 @@ static void test_exec_editmode(IUnknown *unk, BOOL loaded)
CHECK_CALLED(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED); CHECK_CALLED(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED);
CHECK_CALLED(OnChanged_READYSTATE); CHECK_CALLED(OnChanged_READYSTATE);
CHECK_CALLED(Invoke_OnReadyStateChange_Loading); CHECK_CALLED(Invoke_OnReadyStateChange_Loading);
SET_CALLED(IsSystemMoniker); /* IE7 */ CLEAR_CALLED(IsSystemMoniker); /* IE7 */
SET_CALLED(Exec_ShellDocView_84); SET_CALLED(Exec_ShellDocView_84);
if(loaded) if(loaded)
CHECK_CALLED(BindToStorage); CHECK_CALLED(BindToStorage);
@ -6788,7 +6785,7 @@ static void test_editing_mode(BOOL do_load)
SET_EXPECT(SetStatusText); /* ignore race in native mshtml */ SET_EXPECT(SetStatusText); /* ignore race in native mshtml */
test_timer(EXPECT_UPDATEUI); test_timer(EXPECT_UPDATEUI);
SET_CALLED(SetStatusText); CLEAR_CALLED(SetStatusText);
test_MSHTML_QueryStatus(doc, OLECMDF_SUPPORTED|OLECMDF_ENABLED); test_MSHTML_QueryStatus(doc, OLECMDF_SUPPORTED|OLECMDF_ENABLED);