Commit 1e191e03 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Fixed tests on IE11.

parent 4a28977f
...@@ -978,6 +978,7 @@ static HRESULT WINAPI PropertyNotifySink_OnChanged(IPropertyNotifySink *iface, D ...@@ -978,6 +978,7 @@ static HRESULT WINAPI PropertyNotifySink_OnChanged(IPropertyNotifySink *iface, D
case 3000029: case 3000029:
case 3000030: case 3000030:
case 3000031: case 3000031:
case 3000032:
/* TODO */ /* TODO */
return S_OK; return S_OK;
} }
...@@ -2855,6 +2856,7 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID ...@@ -2855,6 +2856,7 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID
test_readyState(NULL); test_readyState(NULL);
return S_OK; return S_OK;
case OLECMDID_UPDATETRAVELENTRY_DATARECOVERY: case OLECMDID_UPDATETRAVELENTRY_DATARECOVERY:
case OLECMDID_PAGEAVAILABLE:
case 6058: case 6058:
return E_FAIL; /* FIXME */ return E_FAIL; /* FIXME */
default: default:
...@@ -2864,7 +2866,7 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID ...@@ -2864,7 +2866,7 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID
} }
if(IsEqualGUID(&CGID_ShellDocView, pguidCmdGroup)) { if(IsEqualGUID(&CGID_ShellDocView, pguidCmdGroup)) {
if(nCmdID != 63 && (!is_refresh || nCmdID != 37)) if(nCmdID != 63 && nCmdID != 178 && (!is_refresh || nCmdID != 37))
test_readyState(NULL); test_readyState(NULL);
ok(nCmdexecopt == 0, "nCmdexecopts=%08x\n", nCmdexecopt); ok(nCmdexecopt == 0, "nCmdexecopts=%08x\n", nCmdexecopt);
...@@ -2976,9 +2978,11 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID ...@@ -2976,9 +2978,11 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID
case 83: case 83:
case 102: case 102:
case 133:
case 134: /* TODO */ case 134: /* TODO */
case 135: case 135:
case 136: /* TODO */ case 136: /* TODO */
case 137:
case 139: /* TODO */ case 139: /* TODO */
case 143: /* TODO */ case 143: /* TODO */
case 144: /* TODO */ case 144: /* TODO */
...@@ -3293,13 +3297,15 @@ static HRESULT WINAPI TravelLog_QueryInterface(ITravelLog *iface, REFIID riid, v ...@@ -3293,13 +3297,15 @@ static HRESULT WINAPI TravelLog_QueryInterface(ITravelLog *iface, REFIID riid, v
{ {
static const IID IID_IIETravelLog2 = {0xb67cefd2,0xe3f1,0x478a,{0x9b,0xfa,0xd8,0x93,0x70,0x37,0x5e,0x94}}; static const IID IID_IIETravelLog2 = {0xb67cefd2,0xe3f1,0x478a,{0x9b,0xfa,0xd8,0x93,0x70,0x37,0x5e,0x94}};
static const IID IID_unk_travellog = {0x6afc8b7f,0xbc17,0x4a95,{0x90,0x2f,0x6f,0x5c,0xb5,0x54,0xc3,0xd8}}; static const IID IID_unk_travellog = {0x6afc8b7f,0xbc17,0x4a95,{0x90,0x2f,0x6f,0x5c,0xb5,0x54,0xc3,0xd8}};
static const IID IID_unk_travellog2 = {0xf6d02767,0x9c80,0x428d,{0xb9,0x74,0x3f,0x17,0x29,0x45,0x3f,0xdb}};
if(IsEqualGUID(&IID_IUnknown, riid) || IsEqualGUID(&IID_ITravelLog, riid)) { if(IsEqualGUID(&IID_IUnknown, riid) || IsEqualGUID(&IID_ITravelLog, riid)) {
*ppv = iface; *ppv = iface;
return S_OK; return S_OK;
} }
if(!IsEqualGUID(&IID_IIETravelLog2, riid) && !IsEqualGUID(&IID_unk_travellog, riid)) if(!IsEqualGUID(&IID_IIETravelLog2, riid) && !IsEqualGUID(&IID_unk_travellog, riid)
&& !IsEqualGUID(&IID_unk_travellog2, riid))
ok(0, "unexpected call %s\n", wine_dbgstr_guid(riid)); ok(0, "unexpected call %s\n", wine_dbgstr_guid(riid));
*ppv = NULL; *ppv = NULL;
...@@ -3433,7 +3439,7 @@ static HRESULT WINAPI DocObjectService_FireBeforeNavigate2(IDocObjectService *i ...@@ -3433,7 +3439,7 @@ static HRESULT WINAPI DocObjectService_FireBeforeNavigate2(IDocObjectService *i
ok(!pDispatch, "pDispatch = %p\n", pDispatch); ok(!pDispatch, "pDispatch = %p\n", pDispatch);
ok(!strcmp_wa(lpszUrl, nav_url), "lpszUrl = %s, expected %s\n", wine_dbgstr_w(lpszUrl), nav_url); ok(!strcmp_wa(lpszUrl, nav_url), "lpszUrl = %s, expected %s\n", wine_dbgstr_w(lpszUrl), nav_url);
ok(dwFlags == 0x40 || !dwFlags || dwFlags == 0x50, "dwFlags = %x\n", dwFlags); ok(dwFlags == 0x140 /* IE11*/ || dwFlags == 0x40 || !dwFlags || dwFlags == 0x50, "dwFlags = %x\n", dwFlags);
ok(!lpszFrameName, "lpszFrameName = %s\n", wine_dbgstr_w(lpszFrameName)); ok(!lpszFrameName, "lpszFrameName = %s\n", wine_dbgstr_w(lpszFrameName));
if(!testing_submit) { if(!testing_submit) {
ok(!pPostData, "pPostData = %p\n", pPostData); ok(!pPostData, "pPostData = %p\n", pPostData);
...@@ -5294,7 +5300,7 @@ static void test_doscroll(IUnknown *unk) ...@@ -5294,7 +5300,7 @@ static void test_doscroll(IUnknown *unk)
switch(load_state) { switch(load_state) {
case LD_DOLOAD: case LD_DOLOAD:
case LD_NO: case LD_NO:
if(!nav_url) if(!nav_url && !editmode)
ok(!elem, "elem != NULL\n"); ok(!elem, "elem != NULL\n");
default: default:
break; break;
...@@ -5746,6 +5752,8 @@ static void test_download(DWORD flags) ...@@ -5746,6 +5752,8 @@ static void test_download(DWORD flags)
SET_EXPECT(NavigateWithBindCtx); SET_EXPECT(NavigateWithBindCtx);
SET_EXPECT(Exec_Explorer_38); /* todo_wine */ SET_EXPECT(Exec_Explorer_38); /* todo_wine */
} }
if(editmode || is_refresh)
SET_EXPECT(Exec_ShellDocView_138);
expect_status_text = (LPWSTR)0xdeadbeef; /* TODO */ expect_status_text = (LPWSTR)0xdeadbeef; /* TODO */
while(!*b && GetMessageW(&msg, NULL, 0, 0)) { while(!*b && GetMessageW(&msg, NULL, 0, 0)) {
...@@ -5868,6 +5876,8 @@ static void test_download(DWORD flags) ...@@ -5868,6 +5876,8 @@ static void test_download(DWORD flags)
CHECK_CALLED(NavigateWithBindCtx); CHECK_CALLED(NavigateWithBindCtx);
todo_wine CHECK_NOT_CALLED(Exec_Explorer_38); todo_wine CHECK_NOT_CALLED(Exec_Explorer_38);
} }
if(editmode || is_refresh)
CLEAR_CALLED(Exec_ShellDocView_138); /* IE11 */
if(!is_extern) if(!is_extern)
load_state = LD_COMPLETE; load_state = LD_COMPLETE;
...@@ -5973,7 +5983,7 @@ static void test_put_href(IHTMLDocument2 *doc, BOOL use_replace, const char *hre ...@@ -5973,7 +5983,7 @@ static void test_put_href(IHTMLDocument2 *doc, BOOL use_replace, const char *hre
CHECK_CALLED(TranslateUrl); CHECK_CALLED(TranslateUrl);
if(support_wbapp) { if(support_wbapp) {
CHECK_CALLED(FireBeforeNavigate2); CHECK_CALLED(FireBeforeNavigate2);
CHECK_CALLED(Exec_ShellDocView_67); CLEAR_CALLED(Exec_ShellDocView_67); /* Not called by IE11 */
if(!is_hash) { if(!is_hash) {
CHECK_CALLED(Invoke_AMBIENT_SILENT); CHECK_CALLED(Invoke_AMBIENT_SILENT);
CHECK_CALLED(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED); CHECK_CALLED(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED);
...@@ -6039,7 +6049,7 @@ static void test_put_href(IHTMLDocument2 *doc, BOOL use_replace, const char *hre ...@@ -6039,7 +6049,7 @@ static void test_put_href(IHTMLDocument2 *doc, BOOL use_replace, const char *hre
ok(hres == S_OK, "SuperNavigate failed: %08x\n", hres); ok(hres == S_OK, "SuperNavigate failed: %08x\n", hres);
CHECK_CALLED(TranslateUrl); CHECK_CALLED(TranslateUrl);
CHECK_CALLED(Exec_ShellDocView_67); CLEAR_CALLED(Exec_ShellDocView_67); /* Not called by IE11 */
CHECK_CALLED(Invoke_AMBIENT_SILENT); CHECK_CALLED(Invoke_AMBIENT_SILENT);
CHECK_CALLED(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED); CHECK_CALLED(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED);
CHECK_CALLED(Exec_ShellDocView_63); CHECK_CALLED(Exec_ShellDocView_63);
...@@ -6110,8 +6120,8 @@ static void test_load_history(IHTMLDocument2 *doc) ...@@ -6110,8 +6120,8 @@ static void test_load_history(IHTMLDocument2 *doc)
hres = IPersistHistory_LoadHistory(per_hist, history_stream, NULL); hres = IPersistHistory_LoadHistory(per_hist, history_stream, NULL);
ok(hres == S_OK, "LoadHistory failed: %08x\n", hres); ok(hres == S_OK, "LoadHistory failed: %08x\n", hres);
CHECK_CALLED_BROKEN(Exec_ShellDocView_138); CLEAR_CALLED(Exec_ShellDocView_138); /* Not called by IE11 */
CHECK_CALLED(Exec_ShellDocView_67); CLEAR_CALLED(Exec_ShellDocView_67); /* Not called by IE11 */
CHECK_CALLED(FireBeforeNavigate2); CHECK_CALLED(FireBeforeNavigate2);
CHECK_CALLED(Invoke_AMBIENT_SILENT); CHECK_CALLED(Invoke_AMBIENT_SILENT);
CHECK_CALLED(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED); CHECK_CALLED(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED);
...@@ -7834,11 +7844,11 @@ static void test_submit(void) ...@@ -7834,11 +7844,11 @@ static void test_submit(void)
CHECK_CALLED(TranslateUrl); CHECK_CALLED(TranslateUrl);
CHECK_CALLED(FireBeforeNavigate2); CHECK_CALLED(FireBeforeNavigate2);
CHECK_CALLED(Exec_ShellDocView_67); CLEAR_CALLED(Exec_ShellDocView_67); /* Not called by IE11 */
CHECK_CALLED(Invoke_AMBIENT_SILENT); CHECK_CALLED(Invoke_AMBIENT_SILENT);
CHECK_CALLED(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED); CHECK_CALLED(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED);
CHECK_CALLED(Exec_ShellDocView_63); CHECK_CALLED(Exec_ShellDocView_63);
todo_wine CHECK_CALLED(Exec_ShellDocView_84); CLEAR_CALLED(Exec_ShellDocView_84); /* Not called by IE11 */
CHECK_CALLED(CreateInstance); CHECK_CALLED(CreateInstance);
CHECK_CALLED(Start); CHECK_CALLED(Start);
CHECK_CALLED(Protocol_Read); CHECK_CALLED(Protocol_Read);
......
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