mshtml: Added test for setting VT_EMPTY event handler.
This commit is contained in:
parent
f3d805862a
commit
f1a543d546
|
@ -1065,6 +1065,7 @@ HRESULT set_event_handler(event_target_t **event_target, HTMLDocumentNode *doc,
|
|||
|
||||
default:
|
||||
FIXME("not supported vt=%d\n", V_VT(var));
|
||||
case VT_EMPTY:
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
|
||||
|
|
|
@ -1082,6 +1082,10 @@ static void test_onclick(IHTMLDocument2 *doc)
|
|||
ok(hres == S_OK, "get_onclick failed: %08x\n", hres);
|
||||
ok(V_VT(&v) == VT_NULL, "V_VT(onclick) = %d\n", V_VT(&v));
|
||||
|
||||
V_VT(&v) = VT_EMPTY;
|
||||
hres = IHTMLElement_put_onclick(div, v);
|
||||
ok(hres == E_NOTIMPL, "put_onclick failed: %08x\n", hres);
|
||||
|
||||
V_VT(&v) = VT_DISPATCH;
|
||||
V_DISPATCH(&v) = (IDispatch*)&div_onclick_obj;
|
||||
hres = IHTMLElement_put_onclick(div, v);
|
||||
|
|
Loading…
Reference in New Issue