mshtml: Add better stub for HTMLDocument7::get_onmsthumbnailclick.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
eb018308ab
commit
756d9cdc6f
|
@ -3339,8 +3339,10 @@ static HRESULT WINAPI HTMLDocument7_put_onmsthumbnailclick(IHTMLDocument7 *iface
|
|||
static HRESULT WINAPI HTMLDocument7_get_onmsthumbnailclick(IHTMLDocument7 *iface, VARIANT *p)
|
||||
{
|
||||
HTMLDocument *This = impl_from_IHTMLDocument7(iface);
|
||||
FIXME("(%p)->(%p)\n", This, p);
|
||||
return E_NOTIMPL;
|
||||
|
||||
TRACE("(%p)->(%p)\n", This, p);
|
||||
|
||||
return get_doc_event(This, EVENTID_MSTHUMBNAILCLICK, p);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI HTMLDocument7_get_characterSet(IHTMLDocument7 *iface, BSTR *p)
|
||||
|
|
|
@ -88,6 +88,7 @@ static const WCHAR mouseoutW[] = {'m','o','u','s','e','o','u','t',0};
|
|||
static const WCHAR mouseoverW[] = {'m','o','u','s','e','o','v','e','r',0};
|
||||
static const WCHAR mouseupW[] = {'m','o','u','s','e','u','p',0};
|
||||
static const WCHAR mousewheelW[] = {'m','o','u','s','e','w','h','e','e','l',0};
|
||||
static const WCHAR msthumbnailclickW[] = {'m','s','t','h','u','m','b','n','a','i','l','c','l','i','c','k',0};
|
||||
static const WCHAR pasteW[] = {'p','a','s','t','e',0};
|
||||
static const WCHAR readystatechangeW[] = {'r','e','a','d','y','s','t','a','t','e','c','h','a','n','g','e',0};
|
||||
static const WCHAR resizeW[] = {'r','e','s','i','z','e',0};
|
||||
|
@ -208,6 +209,8 @@ static const event_info_t event_info[] = {
|
|||
EVENT_DEFAULTLISTENER | EVENT_BUBBLES | EVENT_CANCELABLE},
|
||||
{mousewheelW, EVENT_TYPE_MOUSE, DISPID_EVMETH_ONMOUSEWHEEL,
|
||||
EVENT_FIXME},
|
||||
{msthumbnailclickW, EVENT_TYPE_MOUSE, DISPID_EVPROP_ONMSTHUMBNAILCLICK,
|
||||
EVENT_FIXME},
|
||||
{pasteW, EVENT_TYPE_CLIPBOARD, DISPID_EVMETH_ONPASTE,
|
||||
EVENT_FIXME | EVENT_BUBBLES | EVENT_CANCELABLE},
|
||||
{readystatechangeW, EVENT_TYPE_EVENT, DISPID_EVMETH_ONREADYSTATECHANGE,
|
||||
|
|
|
@ -46,6 +46,7 @@ typedef enum {
|
|||
EVENTID_MOUSEOVER,
|
||||
EVENTID_MOUSEUP,
|
||||
EVENTID_MOUSEWHEEL,
|
||||
EVENTID_MSTHUMBNAILCLICK,
|
||||
EVENTID_PASTE,
|
||||
EVENTID_READYSTATECHANGE,
|
||||
EVENTID_RESIZE,
|
||||
|
|
|
@ -7014,6 +7014,7 @@ static void test_dom_implementation(IHTMLDocument2 *doc)
|
|||
IHTMLDocument7 *new_document;
|
||||
IHTMLLocation *location;
|
||||
IHTMLWindow2 *window;
|
||||
VARIANT v;
|
||||
IDispatch *disp;
|
||||
|
||||
test_disp((IUnknown*)dom_implementation, &DIID_DispHTMLDOMImplementation, NULL, "[object]");
|
||||
|
@ -7045,6 +7046,12 @@ static void test_dom_implementation(IHTMLDocument2 *doc)
|
|||
hres = IHTMLDocument2_get_location(new_document2, &location);
|
||||
ok(hres == E_UNEXPECTED, "get_location returned: %08x\n", hres);
|
||||
|
||||
memset(&v, 0xcc, sizeof(v));
|
||||
hres = IHTMLDocument7_get_onmsthumbnailclick(new_document, &v);
|
||||
ok(hres == S_OK, "get_onmsthumbnailclick returned: %08x\n", hres);
|
||||
ok(V_VT(&v) == VT_NULL, "got %u\n", V_VT(&v));
|
||||
ok((DWORD)(DWORD_PTR)V_DISPATCH(&v) == 0xcccccccc, "got %p\n", V_DISPATCH(&v));
|
||||
|
||||
IHTMLDocument2_Release(new_document2);
|
||||
IHTMLDocument7_Release(new_document);
|
||||
IHTMLDOMImplementation2_Release(dom_implementation2);
|
||||
|
|
Loading…
Reference in New Issue