40"<BODY><H2>Generated HTML</H2>\r\n"
43"<TR bgColor=green>\r\n"
45"<TH>Value</TH></TR>\r\n"
48"<TD>value1</TD></TR>\r\n"
51"<TD>value2</TD></TR></TBODY></TABLE></BODY>";
66 while(*p1==
'\r' || *p1==
'\n' || *p1==
'\"') p1++;
67 while(*p2==
'\r' || *p2==
'\n') p2++;
86 ok(0,
"Unexpected call\n");
102 ok(0,
"unexpected call\n");
109 ok(0,
"unexpected call\n");
116 ok(0,
"unexpected call\n");
122 EXCEPINFO *pExcepInfo,
UINT *puArgErr)
125 static const WCHAR completeW[] = {
'c',
'o',
'm',
'p',
'l',
'e',
't',
'e',0};
154 IHTMLDocument *htmldoc;
160 win_skip(
"Failed to create XMLView instance\n");
163 ok(
hres ==
S_OK,
"CoCreateInstance returned %x, expected S_OK\n",
hres);
165 hres = IUnknown_QueryInterface(xmlview, &IID_IPersistMoniker, (
void**)&unk);
166 ok(
hres ==
S_OK,
"QueryInterface(IID_IPersistMoniker) returned %x, expected S_OK\n",
hres);
167 IUnknown_Release(unk);
169 hres = IUnknown_QueryInterface(xmlview, &IID_IPersistHistory, (
void**)&unk);
170 ok(
hres ==
S_OK,
"QueryInterface(IID_IPersistHistory) returned %x, expected S_OK\n",
hres);
171 IUnknown_Release(unk);
173 hres = IUnknown_QueryInterface(xmlview, &IID_IOleCommandTarget, (
void**)&unk);
174 ok(
hres ==
S_OK,
"QueryInterface(IID_IOleCommandTarget) returned %x, expected S_OK\n",
hres);
175 IUnknown_Release(unk);
178 ok(
hres ==
S_OK,
"QueryInterface(IID_IOleObject) returned %x, expected S_OK\n",
hres);
179 IUnknown_Release(unk);
181 hres = IUnknown_QueryInterface(xmlview, &IID_IHTMLDocument, (
void**)&htmldoc);
182 ok(
hres ==
S_OK,
"QueryInterface(IID_IHTMLDocument) returned %x, expected S_OK\n",
hres);
184 ok(
hres ==
S_OK,
"QueryInterface(IID_IUnknown) returned %x, expected S_OK\n",
hres);
185 ok(unk == xmlview,
"Aggregation is not working as expected\n");
186 IUnknown_Release(unk);
187 IHTMLDocument_Release(htmldoc);
189 IUnknown_Release(xmlview);
194 static const WCHAR xmlview_xmlW[] = {
'/',
'x',
'm',
'l',
'/',
'x',
'm',
'l',
'v',
'i',
'e',
'w',
'.',
'x',
'm',
'l',0};
195 static const WCHAR res[] = {
'r',
'e',
's',
':',
'/',
'/',0};
212 if(!pCreateURLMoniker) {
213 win_skip(
"CreateURLMoniker not available\n");
218 &IID_IPersistMoniker, (
void**)&pers_mon);
220 win_skip(
"Failed to create XMLView instance\n");
223 ok(
hres ==
S_OK,
"CoCreateInstance returned %x, expected S_OK\n",
hres);
225 hres = IPersistMoniker_QueryInterface(pers_mon, &IID_IHTMLDocument2, (
void**)&
html_doc);
226 ok(
hres ==
S_OK,
"QueryInterface(HTMLDocument2) returned %x, expected S_OK\n",
hres);
228 ok(
hres ==
S_OK,
"QueryInterface(IConnectionPointContainer) returned %x, expected S_OK\n",
hres);
230 ok(
hres ==
S_OK,
"FindConnectionPoint returned %x, expected S_OK\n",
hres);
233 IConnectionPoint_Release(
cp);
234 IConnectionPointContainer_Release(cpc);
237 ok(
hres ==
S_OK,
"CreateBindCtx returned %x, expected S_OK\n",
hres);
239 ok(
hres ==
S_OK,
"CreateUrlMoniker returned %x, expected S_OK\n",
hres);
241 hres = IPersistMoniker_Load(pers_mon,
TRUE, mon, bctx, 0);
243 IBindCtx_Release(bctx);
244 IMoniker_Release(mon);
254 ok(
hres ==
S_OK,
"get_outerHTML returned %x, expected S_OK\n",
hres);
256 IHTMLElement_Release(
elem);
261 IPersistMoniker_Release(pers_mon);
267 pCreateURLMoniker = (
void*)
GetProcAddress(urlmon,
"CreateURLMoniker");
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
#define GetProcAddress(x, y)
#define WideCharToMultiByte
DWORD WINAPI GetModuleFileNameW(HINSTANCE hModule, LPWSTR lpFilename, DWORD nSize)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
GLenum GLuint GLenum GLsizei const GLchar * buf
LPWSTR WINAPI lstrcatW(LPWSTR lpString1, LPCWSTR lpString2)
static const char * strw(LPCWSTR x)
static HRESULT WINAPI HTMLEvents_GetTypeInfoCount(IDispatch *iface, UINT *pctinfo)
static ULONG WINAPI HTMLEvents_AddRef(IDispatch *iface)
static HRESULT WINAPI HTMLEvents_GetTypeInfo(IDispatch *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
IMoniker **static const char xmlview_html[]
static HRESULT WINAPI HTMLEvents_Invoke(IDispatch *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT WINAPI HTMLEvents_GetIDsOfNames(IDispatch *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static void test_QueryInterface(void)
static int html_src_compare(LPCWSTR strw, const char *stra)
static ULONG WINAPI HTMLEvents_Release(IDispatch *iface)
static HRESULT WINAPI HTMLEvents_QueryInterface(IDispatch *iface, REFIID riid, void **ppv)
static const IDispatchVtbl HTMLEventsVtbl
static IDispatch HTMLEvents
static void test_Load(void)
IHTMLDocument2 * html_doc
static VARIANTARG static DISPID
#define DISPID_HTMLDOCUMENTEVENTS2_ONREADYSTATECHANGE
HRESULT WINAPI CreateBindCtx(DWORD reserved, LPBC *ppbc)
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
const GUID IID_IConnectionPointContainer
const GUID IID_IOleObject
#define IsEqualGUID(rguid1, rguid2)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
_In_ DWORD _Out_ _In_ WORD wFlags
LRESULT WINAPI DispatchMessageA(_In_ const MSG *)
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BOOL WINAPI GetMessageA(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT)