Alistair Leslie-Hughes : mshtml: Add IHTMLElementBody test.
Alexandre Julliard
julliard at winehq.org
Wed Sep 3 07:43:59 CDT 2008
Module: wine
Branch: master
Commit: b5be64db6b2fda9fb2e028bf0bb4fe053b5ad923
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b5be64db6b2fda9fb2e028bf0bb4fe053b5ad923
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Wed Sep 3 13:15:18 2008 +1000
mshtml: Add IHTMLElementBody test.
---
dlls/mshtml/tests/script.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/dlls/mshtml/tests/script.c b/dlls/mshtml/tests/script.c
index 970da5d..157dbc3 100644
--- a/dlls/mshtml/tests/script.c
+++ b/dlls/mshtml/tests/script.c
@@ -237,6 +237,10 @@ static IHTMLDocument2 *create_and_load_doc(const char *str)
ULONG ref;
MSG msg;
HRESULT hres;
+ static const WCHAR ucPtr[] = {'b','a','c','k','g','r','o','u','n','d',0};
+ DISPID dispID = -1;
+ OLECHAR *name;
+
doc = create_doc_with_string(str);
do_advise((IUnknown*)doc, &IID_IPropertyNotifySink, (IUnknown*)&PropertyNotifySink);
@@ -256,6 +260,12 @@ static IHTMLDocument2 *create_and_load_doc(const char *str)
return NULL;
}
+ /* Check we can query for function on the IHTMLElementBody interface */
+ name = (WCHAR*)ucPtr;
+ hres = IHTMLElement_GetIDsOfNames(body, &IID_NULL, &name, 1, LOCALE_USER_DEFAULT, &dispID);
+ ok(hres == S_OK, "GetIDsOfNames(background) failed %08x\n", hres);
+ ok(dispID == DISPID_IHTMLBODYELEMENT_BACKGROUND, "Incorrect dispID got (%d)\n", dispID);
+
IHTMLElement_Release(body);
return doc;
}
More information about the wine-cvs
mailing list