Commit f1a543d5 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added test for setting VT_EMPTY event handler.

parent f3d80586
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment