mshtml: Added tests showing that we should return E_NOTIMPL in DeleteMemberByName.
This commit is contained in:
parent
6e116f5215
commit
0216974a1b
|
@ -983,7 +983,10 @@ static HRESULT WINAPI DispatchEx_InvokeEx(IDispatchEx *iface, DISPID id, LCID lc
|
|||
static HRESULT WINAPI DispatchEx_DeleteMemberByName(IDispatchEx *iface, BSTR bstrName, DWORD grfdex)
|
||||
{
|
||||
DispatchEx *This = DISPATCHEX_THIS(iface);
|
||||
FIXME("(%p)->(%s %x)\n", This, debugstr_w(bstrName), grfdex);
|
||||
|
||||
TRACE("(%p)->(%s %x)\n", This, debugstr_w(bstrName), grfdex);
|
||||
|
||||
/* Not implemented by IE */
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
|
|
@ -1803,6 +1803,11 @@ static HRESULT WINAPI ActiveScriptParse_ParseScriptText(IActiveScriptParse *ifac
|
|||
|
||||
test_func(dispex);
|
||||
test_nextdispid(dispex);
|
||||
|
||||
tmp = a2bstr("test");
|
||||
hres = IDispatchEx_DeleteMemberByName(dispex, tmp, fdexNameCaseSensitive);
|
||||
ok(hres == E_NOTIMPL, "DeleteMemberByName failed: %08x\n", hres);
|
||||
|
||||
IDispatchEx_Release(dispex);
|
||||
|
||||
script_disp = (IDispatch*)&scriptDisp;
|
||||
|
@ -1843,6 +1848,10 @@ static HRESULT WINAPI ActiveScriptParse_ParseScriptText(IActiveScriptParse *ifac
|
|||
CHECK_CALLED(script_testprop2_d);
|
||||
SysFreeString(tmp);
|
||||
|
||||
tmp = a2bstr("test");
|
||||
hres = IDispatchEx_DeleteMemberByName(window_dispex, tmp, fdexNameCaseSensitive);
|
||||
ok(hres == E_NOTIMPL, "DeleteMemberByName failed: %08x\n", hres);
|
||||
|
||||
test_global_id();
|
||||
|
||||
test_security();
|
||||
|
|
Loading…
Reference in New Issue