mshtml: Added tests showing that we should return E_NOTIMPL in DeleteMemberByName.

This commit is contained in:
Jacek Caban 2010-02-11 01:20:26 +01:00 committed by Alexandre Julliard
parent 6e116f5215
commit 0216974a1b
2 changed files with 13 additions and 1 deletions

View File

@ -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;
}

View File

@ -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();