mshtml: Added test for setting VT_EMPTY event handler.

This commit is contained in:
Jacek Caban 2009-12-06 22:10:24 +01:00 committed by Alexandre Julliard
parent f3d805862a
commit f1a543d546
2 changed files with 5 additions and 0 deletions

View File

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

View File

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