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

mshtml: Added IDOMMouseEvent stub implementation.

parent 73d1b89a
...@@ -59,10 +59,13 @@ typedef enum { ...@@ -59,10 +59,13 @@ typedef enum {
typedef struct { typedef struct {
DispatchEx dispex; DispatchEx dispex;
IDOMEvent IDOMEvent_iface; IDOMEvent IDOMEvent_iface;
IDOMMouseEvent IDOMMouseEvent_iface;
LONG ref; LONG ref;
nsIDOMEvent *nsevent; nsIDOMEvent *nsevent;
nsIDOMMouseEvent *mouse_event;
eventid_t event_id; eventid_t event_id;
WCHAR *type; WCHAR *type;
EventTarget *target; EventTarget *target;
......
...@@ -2666,6 +2666,7 @@ static void test_iframe_connections(IHTMLDocument2 *doc) ...@@ -2666,6 +2666,7 @@ static void test_iframe_connections(IHTMLDocument2 *doc)
static void test_create_event(IHTMLDocument2 *doc) static void test_create_event(IHTMLDocument2 *doc)
{ {
IDOMMouseEvent *mouse_event;
IDocumentEvent *doc_event; IDocumentEvent *doc_event;
IEventTarget *event_target; IEventTarget *event_target;
IHTMLElement *elem; IHTMLElement *elem;
...@@ -2720,6 +2721,20 @@ static void test_create_event(IHTMLDocument2 *doc) ...@@ -2720,6 +2721,20 @@ static void test_create_event(IHTMLDocument2 *doc)
IEventTarget_Release(event_target); IEventTarget_Release(event_target);
hres = IDOMEvent_QueryInterface(event, &IID_IDOMMouseEvent, (void**)&mouse_event);
ok(hres == E_NOINTERFACE, "QueryInterface(IID_IDOMMouseEvent returned %08x\n", hres);
IDOMEvent_Release(event);
str = a2bstr("MouseEvent");
hres = IDocumentEvent_createEvent(doc_event, str, &event);
SysFreeString(str);
ok(hres == S_OK, "createEvent failed: %08x\n", hres);
hres = IDOMEvent_QueryInterface(event, &IID_IDOMMouseEvent, (void**)&mouse_event);
ok(hres == S_OK, "QueryInterface(IID_IDOMMouseEvent returned %08x\n", hres);
IDOMMouseEvent_Release(mouse_event);
IDOMEvent_Release(event); IDOMEvent_Release(event);
IDocumentEvent_Release(doc_event); IDocumentEvent_Release(doc_event);
......
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