mshtml: More IE7 test fixes.
This commit is contained in:
parent
fe04ba0aab
commit
6f8bb3256e
|
@ -401,6 +401,12 @@ static HRESULT exec_stop_download(HTMLDocument *This, DWORD nCmdexecopt, VARIANT
|
||||||
return E_NOTIMPL;
|
return E_NOTIMPL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static HRESULT exec_find(HTMLDocument *This, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut)
|
||||||
|
{
|
||||||
|
FIXME("(%p)->(%d %p %p)\n", This, nCmdexecopt, pvaIn, pvaOut);
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
||||||
static HRESULT exec_delete(HTMLDocument *This, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut)
|
static HRESULT exec_delete(HTMLDocument *This, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut)
|
||||||
{
|
{
|
||||||
FIXME("(%p)->(%d %p %p)\n", This, nCmdexecopt, pvaIn, pvaOut);
|
FIXME("(%p)->(%d %p %p)\n", This, nCmdexecopt, pvaIn, pvaOut);
|
||||||
|
@ -689,7 +695,8 @@ static const struct {
|
||||||
{ OLECMDF_SUPPORTED|OLECMDF_ENABLED, exec_stop }, /* OLECMDID_STOP */
|
{ OLECMDF_SUPPORTED|OLECMDF_ENABLED, exec_stop }, /* OLECMDID_STOP */
|
||||||
{0},{0},{0},{0},{0},{0},
|
{0},{0},{0},{0},{0},{0},
|
||||||
{ OLECMDF_SUPPORTED, exec_stop_download }, /* OLECMDID_STOPDOWNLOAD */
|
{ OLECMDF_SUPPORTED, exec_stop_download }, /* OLECMDID_STOPDOWNLOAD */
|
||||||
{0},{0},
|
{0},
|
||||||
|
{ OLECMDF_SUPPORTED|OLECMDF_ENABLED, exec_find }, /* OLECMDID_FIND */
|
||||||
{ OLECMDF_SUPPORTED, exec_delete }, /* OLECMDID_DELETE */
|
{ OLECMDF_SUPPORTED, exec_delete }, /* OLECMDID_DELETE */
|
||||||
{0},{0},
|
{0},{0},
|
||||||
{ OLECMDF_SUPPORTED, exec_enable_interaction }, /* OLECMDID_ENABLE_INTERACTION */
|
{ OLECMDF_SUPPORTED, exec_enable_interaction }, /* OLECMDID_ENABLE_INTERACTION */
|
||||||
|
|
|
@ -114,6 +114,8 @@ DEFINE_EXPECT(OnChanged_READYSTATE);
|
||||||
DEFINE_EXPECT(OnChanged_1005);
|
DEFINE_EXPECT(OnChanged_1005);
|
||||||
DEFINE_EXPECT(GetDisplayName);
|
DEFINE_EXPECT(GetDisplayName);
|
||||||
DEFINE_EXPECT(BindToStorage);
|
DEFINE_EXPECT(BindToStorage);
|
||||||
|
DEFINE_EXPECT(IsSystemMoniker);
|
||||||
|
DEFINE_EXPECT(GetBindResult);
|
||||||
DEFINE_EXPECT(Abort);
|
DEFINE_EXPECT(Abort);
|
||||||
DEFINE_EXPECT(Read);
|
DEFINE_EXPECT(Read);
|
||||||
DEFINE_EXPECT(CreateInstance);
|
DEFINE_EXPECT(CreateInstance);
|
||||||
|
@ -213,7 +215,14 @@ static void test_timer(DWORD flags)
|
||||||
|
|
||||||
static HRESULT WINAPI External_QueryInterface(IDispatch *iface, REFIID riid, void **ppv)
|
static HRESULT WINAPI External_QueryInterface(IDispatch *iface, REFIID riid, void **ppv)
|
||||||
{
|
{
|
||||||
ok(0, "unexpected call\n");
|
*ppv = NULL;
|
||||||
|
|
||||||
|
if(IsEqualGUID(&IID_IUnknown, riid) || IsEqualGUID(&IID_IDispatch, riid)) {
|
||||||
|
*ppv = iface;
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
|
|
||||||
|
ok(0, "unexpected riid: %s\n", debugstr_guid(riid));
|
||||||
return E_NOINTERFACE;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -811,7 +820,7 @@ static HRESULT WINAPI Binding_GetPriority(IBinding *iface, LONG *pnPriority)
|
||||||
static HRESULT WINAPI Binding_GetBindResult(IBinding *iface, CLSID *pclsidProtocol,
|
static HRESULT WINAPI Binding_GetBindResult(IBinding *iface, CLSID *pclsidProtocol,
|
||||||
DWORD *pdwResult, LPOLESTR *pszResult, DWORD *pdwReserved)
|
DWORD *pdwResult, LPOLESTR *pszResult, DWORD *pdwReserved)
|
||||||
{
|
{
|
||||||
ok(0, "unexpected call\n");
|
CHECK_EXPECT(GetBindResult);
|
||||||
return E_NOTIMPL;
|
return E_NOTIMPL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -831,7 +840,8 @@ static IBinding Binding = { &BindingVtbl };
|
||||||
|
|
||||||
static HRESULT WINAPI Moniker_QueryInterface(IMoniker *iface, REFIID riid, void **ppv)
|
static HRESULT WINAPI Moniker_QueryInterface(IMoniker *iface, REFIID riid, void **ppv)
|
||||||
{
|
{
|
||||||
ok(0, "unexpected call\n");
|
*ppv = NULL;
|
||||||
|
ok(0, "unexpected riid: %s\n", debugstr_guid(riid));
|
||||||
return E_NOINTERFACE;
|
return E_NOINTERFACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1052,7 +1062,7 @@ static HRESULT WINAPI Moniker_ParseDisplayName(IMoniker *iface, IBindCtx *pbc,
|
||||||
|
|
||||||
static HRESULT WINAPI Moniker_IsSystemMoniker(IMoniker *iface, DWORD *pdwMksys)
|
static HRESULT WINAPI Moniker_IsSystemMoniker(IMoniker *iface, DWORD *pdwMksys)
|
||||||
{
|
{
|
||||||
ok(0, "unexpected call\n");
|
CHECK_EXPECT(IsSystemMoniker);
|
||||||
return E_NOTIMPL;
|
return E_NOTIMPL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2137,7 +2147,7 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID
|
||||||
if(IsEqualGUID(&CGID_DocHostCmdPriv, pguidCmdGroup))
|
if(IsEqualGUID(&CGID_DocHostCmdPriv, pguidCmdGroup))
|
||||||
return E_FAIL; /* TODO */
|
return E_FAIL; /* TODO */
|
||||||
|
|
||||||
ok(0, "unexpected call\n");
|
ok(0, "unexpected pguidCmdGroup: %s\n", debugstr_guid(pguidCmdGroup));
|
||||||
return E_NOTIMPL;
|
return E_NOTIMPL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2795,10 +2805,15 @@ static void test_OleCommandTarget(IUnknown *unk)
|
||||||
|
|
||||||
for(i=0; i<OLECMDID_GETPRINTTEMPLATE; i++) {
|
for(i=0; i<OLECMDID_GETPRINTTEMPLATE; i++) {
|
||||||
ok(cmds[i].cmdID == i+1, "cmds[%d].cmdID canged to %x\n", i, cmds[i].cmdID);
|
ok(cmds[i].cmdID == i+1, "cmds[%d].cmdID canged to %x\n", i, cmds[i].cmdID);
|
||||||
|
if(i+1 == OLECMDID_FIND)
|
||||||
|
continue;
|
||||||
ok(cmds[i].cmdf == expect_cmds[i+1], "cmds[%d].cmdf=%x, expected %x\n",
|
ok(cmds[i].cmdf == expect_cmds[i+1], "cmds[%d].cmdf=%x, expected %x\n",
|
||||||
i+1, cmds[i].cmdf, expect_cmds[i+1]);
|
i+1, cmds[i].cmdf, expect_cmds[i+1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ok(!cmds[OLECMDID_FIND-1].cmdf || cmds[OLECMDID_FIND-1].cmdf == (OLECMDF_SUPPORTED|OLECMDF_ENABLED),
|
||||||
|
"cmds[OLECMDID_FIND].cmdf=%x\n", cmds[OLECMDID_FIND-1].cmdf);
|
||||||
|
|
||||||
IOleCommandTarget_Release(cmdtrg);
|
IOleCommandTarget_Release(cmdtrg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3492,7 +3507,7 @@ static void test_external(IUnknown *unk, BOOL initialized)
|
||||||
external = (void*)0xdeadbeef;
|
external = (void*)0xdeadbeef;
|
||||||
hres = IHTMLWindow2_get_external(htmlwin, &external);
|
hres = IHTMLWindow2_get_external(htmlwin, &external);
|
||||||
if(initialized) {
|
if(initialized) {
|
||||||
ok(hres == S_FALSE, "get_external failed: %08x\n", hres);
|
ok(hres == S_FALSE || hres == S_OK, "get_external failed: %08x\n", hres);
|
||||||
CHECK_CALLED(GetExternal);
|
CHECK_CALLED(GetExternal);
|
||||||
ok(external != NULL, "external == NULL\n");
|
ok(external != NULL, "external == NULL\n");
|
||||||
}else {
|
}else {
|
||||||
|
|
Loading…
Reference in New Issue