41#define EXPECT_HR(hr,hr_exp) \
42 ok(hr == hr_exp, "got 0x%08x, expected 0x%08x\n", hr, hr_exp)
44#define EXPECT_REF(node,ref) _expect_ref((IUnknown*)node, ref, __LINE__)
49 rc = IUnknown_Release(
obj);
50 ok_(__FILE__,
line)(rc ==
ref,
"expected refcount %d, got %d\n",
ref, rc);
53static const char xmltestA[] =
"http://test.winehq.org/tests/xmltest.xml";
54static const CHAR xmltestbodyA[] =
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<a>TEST</a>\n";
56DEFINE_GUID(SID_SContainerDispatch, 0xb722be00, 0x4e68, 0x101b, 0xa2, 0xbc, 0x00, 0xaa, 0x00, 0x40, 0x47, 0x70);
57DEFINE_GUID(SID_UnknownSID, 0x75dd09cb, 0x6c40, 0x11d5, 0x85, 0x43, 0x00, 0xc0, 0x4f, 0xa0, 0xfb, 0xa3);
61#define DEFINE_EXPECT(func) \
62 static BOOL expect_ ## func = FALSE, called_ ## func = FALSE
64#define SET_EXPECT(func) \
65 expect_ ## func = TRUE
67#define CHECK_EXPECT2(func) \
69 if (g_enablecallchecks) \
70 ok(expect_ ##func, "unexpected call " #func "\n"); \
71 called_ ## func = TRUE; \
74#define CHECK_CALLED(func) \
76 ok(called_ ## func, "expected " #func "\n"); \
77 expect_ ## func = called_ ## func = FALSE; \
152 ok(0,
"unexpected call\n");
169 ok(0,
"unexpected call\n");
176 ok(0,
"unexpected call\n");
184 ok(0,
"unexpected call\n");
190 VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
UINT *puArgErr)
192 ok(0,
"unexpected call\n");
198 ok(0,
"unexpected call\n");
204 ok(0,
"unexpected call\n");
216 ok(0,
"unexpected call\n");
222 ok(0,
"unexpected call\n");
228 ok(0,
"unexpected call\n");
270 ok(0,
"unexpected call\n");
277 ok(0,
"unexpected call\n");
285 ok(0,
"unexpected call\n");
291 VARIANT *pVarResult, EXCEPINFO *pExcepInfo,
UINT *puArgErr)
293 ok(0,
"unexpected call\n");
299 ok(0,
"unexpected call\n");
312 ok(0,
"unexpected call\n");
318 ok(0,
"unexpected call\n");
324 ok(0,
"unexpected call\n");
330 ok(0,
"unexpected call\n");
336 ok(0,
"unexpected call\n");
342 ok(0,
"unexpected call\n");
348 ok(0,
"unexpected call\n");
354 ok(0,
"unexpected call\n");
360 ok(0,
"unexpected call\n");
366 ok(0,
"unexpected call\n");
372 ok(0,
"unexpected call\n");
378 ok(0,
"unexpected call\n");
384 ok(0,
"unexpected call\n");
390 ok(0,
"unexpected call\n");
396 ok(0,
"unexpected call\n");
402 ok(0,
"unexpected call\n");
408 ok(0,
"unexpected call\n");
414 ok(0,
"unexpected call\n");
420 ok(0,
"unexpected call\n");
426 ok(0,
"unexpected call\n");
432 ok(0,
"unexpected call\n");
438 ok(0,
"unexpected call\n");
444 ok(0,
"unexpected call\n");
450 ok(0,
"unexpected call\n");
456 ok(0,
"unexpected call\n");
462 ok(0,
"unexpected call\n");
468 ok(0,
"unexpected call\n");
474 ok(0,
"unexpected call\n");
480 ok(0,
"unexpected call\n");
486 ok(0,
"unexpected call\n");
492 ok(0,
"unexpected call\n");
499 *
p =
a2bstr(
"http://test.winehq.org/");
505 ok(0,
"unexpected call\n");
511 ok(0,
"unexpected call\n");
517 ok(0,
"unexpected call\n");
523 ok(0,
"unexpected call\n");
529 ok(0,
"unexpected call\n");
535 ok(0,
"unexpected call\n");
541 ok(0,
"unexpected call\n");
547 ok(0,
"unexpected call\n");
553 ok(0,
"unexpected call\n");
559 ok(0,
"unexpected call\n");
565 ok(0,
"unexpected call\n");
571 ok(0,
"unexpected call\n");
577 ok(0,
"unexpected call\n");
583 ok(0,
"unexpected call\n");
589 ok(0,
"unexpected call\n");
595 ok(0,
"unexpected call\n");
601 ok(0,
"unexpected call\n");
607 ok(0,
"unexpected call\n");
613 ok(0,
"unexpected call\n");
619 ok(0,
"unexpected call\n");
626 ok(0,
"unexpected call\n");
632 ok(0,
"unexpected call\n");
638 ok(0,
"unexpected call\n");
645 ok(0,
"unexpected call\n");
652 ok(0,
"unexpected call\n");
659 ok(0,
"unexpected call\n");
666 ok(0,
"unexpected call\n");
673 ok(0,
"unexpected call\n");
680 ok(0,
"unexpected call\n");
687 ok(0,
"unexpected call\n");
694 ok(0,
"unexpected call\n");
699 IHTMLElement **newElem)
701 ok(0,
"unexpected call\n");
707 ok(0,
"unexpected call\n");
713 ok(0,
"unexpected call\n");
719 ok(0,
"unexpected call\n");
725 ok(0,
"unexpected call\n");
731 ok(0,
"unexpected call\n");
737 ok(0,
"unexpected call\n");
743 ok(0,
"unexpected call\n");
749 ok(0,
"unexpected call\n");
755 ok(0,
"unexpected call\n");
761 ok(0,
"unexpected call\n");
767 ok(0,
"unexpected call\n");
773 ok(0,
"unexpected call\n");
779 ok(0,
"unexpected call\n");
785 ok(0,
"unexpected call\n");
791 ok(0,
"unexpected call\n");
797 ok(0,
"unexpected call\n");
803 ok(0,
"unexpected call\n");
809 ok(0,
"unexpected call\n");
815 ok(0,
"unexpected call\n");
821 ok(0,
"unexpected call\n");
827 ok(0,
"unexpected call\n");
833 ok(0,
"unexpected call\n");
839 ok(0,
"unexpected call\n");
845 ok(0,
"unexpected call\n");
851 ok(0,
"unexpected call\n");
857 ok(0,
"unexpected call\n");
863 ok(0,
"unexpected call\n");
869 ok(0,
"unexpected call\n");
875 ok(0,
"unexpected call\n");
881 ok(0,
"unexpected call\n");
887 ok(0,
"unexpected call\n");
893 ok(0,
"unexpected call\n");
899 ok(0,
"unexpected call\n");
905 ok(0,
"unexpected call\n");
910 IHTMLElement **elementHit)
912 ok(0,
"unexpected call\n");
918 ok(0,
"unexpected call\n");
923 IHTMLStyleSheetsCollection **
p)
925 ok(0,
"unexpected call\n");
931 ok(0,
"unexpected call\n");
937 ok(0,
"unexpected call\n");
943 ok(0,
"unexpected call\n");
949 ok(0,
"unexpected call\n");
955 ok(0,
"unexpected call\n");
960 LONG lIndex, IHTMLStyleSheet **ppnewStyleSheet)
962 ok(0,
"unexpected call\n");
1095 IServiceProvider_AddRef(iface);
1123 else if (
IsEqualGUID(service, &SID_SContainerDispatch) &&
1126 CHECK_EXPECT2(sp_queryservice_SID_SContainerDispatch_htmldoc2);
1128 else if (
IsEqualGUID(service, &SID_SInternetHostSecurityManager) &&
1135 else if (
IsEqualGUID(service, &SID_SInternetHostSecurityManager) &&
1140 else if (
IsEqualGUID(service, &SID_SInternetHostSecurityManager) &&
1240 IDispatch_AddRef( iface );
1285 EXCEPINFO *excepInfo,
UINT *argErr)
1300 ok(excepInfo ==
NULL,
"got %p\n", excepInfo);
1301 ok(argErr ==
NULL,
"got %p\n", argErr);
1305 state = READYSTATE_UNINITIALIZED;
1308 if (
state == READYSTATE_COMPLETE)
1339 return &
event->IDispatch_iface;
1348 &IID_IXMLHttpRequest, (
void**)&
ret);
1355 IServerXMLHTTPRequest *
ret;
1368 hr = IUnknown_QueryInterface(unk, &IID_IObjectSafety, (
void**)&obj_safety);
1369 ok(
hr ==
S_OK,
"Could not get IObjectSafety iface: %08x\n",
hr);
1372 ok(
hr ==
S_OK,
"SetInterfaceSafetyOptions failed: %08x\n",
hr);
1374 IObjectSafety_Release(obj_safety);
1383 ok(
hr ==
S_OK,
"Could not get IObjectWithSite iface: %08x\n",
hr);
1389 SET_EXPECT(sp_queryservice_SID_SContainerDispatch_htmldoc2);
1390 SET_EXPECT(sp_queryservice_SID_secmgr_htmldoc2);
1391 SET_EXPECT(sp_queryservice_SID_secmgr_xmldomdoc);
1392 SET_EXPECT(sp_queryservice_SID_secmgr_secmgr);
1402 hr = IObjectWithSite_SetSite(obj_site, &
testsite);
1408 CHECK_CALLED(sp_queryservice_SID_SContainerDispatch_htmldoc2);
1427 IObjectWithSite_Release(obj_site);
1430#define test_open(a,b,c,d) _test_open(__LINE__,a,b,c,d)
1438 V_BOOL(&vfalse) = VARIANT_FALSE;
1441 ok_(__FILE__,
line)(
hr == exhres,
"open(%s %s) failed: %08x, expected %08x\n",
method,
url,
hr, exhres);
1444#define test_server_open(a,b,c,d) _test_server_open(__LINE__,a,b,c,d)
1452 V_BOOL(&vfalse) = VARIANT_FALSE;
1455 ok_(__FILE__,
line)(
hr == exhres,
"open(%s %s) failed: %08x, expected %08x\n",
method,
url,
hr, exhres);
1460 static const char bodyA[] =
"mode=Test";
1461 static const char urlA[] =
"http://test.winehq.org/tests/post.php";
1462 static const char referertesturl[] =
"http://test.winehq.org/tests/referer.php";
1463 static const WCHAR wszExpectedResponse[] = {
'F',
'A',
'I',
'L',
'E',
'D',0};
1464 static const WCHAR norefererW[] = {
'n',
'o',
' ',
'r',
'e',
'f',
'e',
'r',
'e',
'r',
' ',
's',
'e',
't',0};
1483 hr = IXMLHttpRequest_put_onreadystatechange(
xhr,
NULL);
1486 hr = IXMLHttpRequest_abort(
xhr);
1491 hr = IXMLHttpRequest_get_responseBody(
xhr, &varbody);
1497 hr = IXMLHttpRequest_get_responseStream(
xhr, &varbody);
1506 hr = IXMLHttpRequest_get_status(
xhr,
NULL);
1514 hr = IXMLHttpRequest_get_statusText(
xhr, &
str);
1531 hr = IXMLHttpRequest_setRequestHeader(
xhr,
_bstr_(
"header1"),
_bstr_(
"value1"));
1534 hr = IXMLHttpRequest_get_readyState(
xhr,
NULL);
1538 hr = IXMLHttpRequest_get_readyState(
xhr, &
state);
1540 ok(
state == READYSTATE_UNINITIALIZED,
"got %d, expected READYSTATE_UNINITIALIZED\n",
state);
1546 hr = IXMLHttpRequest_put_onreadystatechange(
xhr,
event);
1564 hr = IXMLHttpRequest_get_readyState(
xhr, &
state);
1566 ok(
state == READYSTATE_LOADING,
"got %d, expected READYSTATE_LOADING\n",
state);
1568 hr = IXMLHttpRequest_abort(
xhr);
1572 hr = IXMLHttpRequest_get_readyState(
xhr, &
state);
1575 "got %d, expected READYSTATE_UNINITIALIZED\n",
state);
1579 hr = IXMLHttpRequest_setRequestHeader(
xhr,
_bstr_(
"header1"),
_bstr_(
"value1"));
1591 hr = IXMLHttpRequest_send(
xhr, varbody);
1592 if (
hr == INET_E_RESOURCE_NOT_FOUND)
1594 skip(
"No connection could be made with test.winehq.org\n");
1595 IXMLHttpRequest_Release(
xhr);
1601 hr = IXMLHttpRequest_getAllResponseHeaders(
xhr,
NULL);
1603 hr = IXMLHttpRequest_getAllResponseHeaders(
xhr, &
str);
1607 ok(*
str,
"got empty headers\n");
1608 hr = IXMLHttpRequest_getAllResponseHeaders(
xhr, &str1);
1610 ok(str1 !=
str,
"got %p\n", str1);
1618 hr = IXMLHttpRequest_getResponseHeader(
xhr,
_bstr_(
"Date"), &
str);
1629 hr = IXMLHttpRequest_get_statusText(
xhr,
NULL);
1632 hr = IXMLHttpRequest_get_statusText(
xhr, &
str);
1641 hr = IXMLHttpRequest_send(
xhr, varbody);
1644 hr = IXMLHttpRequest_get_responseText(
xhr, &bstrResponse);
1650 ok(!
memcmp(bstrResponse, wszExpectedResponse,
sizeof(wszExpectedResponse)),
1659 hr = IXMLHttpRequest_send(
xhr, varbody);
1667 hr = IXMLHttpRequest_send(
xhr, varbody);
1668 if (
hr == INET_E_RESOURCE_NOT_FOUND)
1670 skip(
"No connection could be made with test.winehq.org\n");
1671 IXMLHttpRequest_Release(
xhr);
1676 hr = IXMLHttpRequest_get_responseText(
xhr,
NULL);
1679 hr = IXMLHttpRequest_get_responseText(
xhr, &bstrResponse);
1685 hr = IXMLHttpRequest_get_responseBody(
xhr,
NULL);
1689 hr = IXMLHttpRequest_get_responseBody(
xhr, &varbody);
1697 ok(bound == 0,
"got %d, expected zero bound\n", bound);
1707 hr = IXMLHttpRequest_get_responseStream(
xhr,
NULL);
1711 hr = IXMLHttpRequest_get_responseStream(
xhr, &varbody);
1722 IDispatch_Release(
event);
1728 hr = IXMLHttpRequest_send(
xhr, varbody);
1730 hr = IXMLHttpRequest_get_responseText(
xhr, &
str);
1739 hr = IObjectWithSite_SetSite(obj_site,
NULL);
1744 ok(obj_site == obj_site2 ||
broken(obj_site != obj_site2),
"got new instance\n");
1745 IObjectWithSite_Release(obj_site2);
1750 str1 =
a2bstr(
"http://test.winehq.org/");
1753 hr = IXMLHttpRequest_send(
xhr, varbody);
1756 hr = IXMLHttpRequest_get_responseText(
xhr, &
str);
1763 hr = IObjectWithSite_SetSite(obj_site, &
testsite);
1766 IObjectWithSite_Release(obj_site);
1769 hr = IXMLHttpRequest_put_onreadystatechange(
xhr,
NULL);
1770 ok(
hr ==
S_OK,
"Failed to reset state change handler, hr %#x.\n",
hr);
1775 hr = IXMLHttpRequest_send(
xhr, varbody);
1776 ok(
hr ==
S_OK,
"Failed to send HEAD request, hr %#x.\n",
hr);
1779 hr = IXMLHttpRequest_get_responseText(
xhr, &
str);
1780 ok(
hr ==
S_OK,
"Failed to get response text, hr %#x.\n",
hr);
1784 hr = IXMLHttpRequest_getAllResponseHeaders(
xhr, &
str);
1785 ok(
hr ==
S_OK,
"Failed to get response headers, hr %#x.\n",
hr);
1786 ok(
str && *
str,
"Expected response headers.\n");
1789 IXMLHttpRequest_Release(
xhr);
1794 test_open(
xhr,
"GET",
"http://invalid.host.test.winehq.org/test/path",
S_OK);
1797 hr = IXMLHttpRequest_send(
xhr, varbody);
1799 ok(
hr == INET_E_RESOURCE_NOT_FOUND,
"send to invalid host returned %#x.\n",
hr);
1801 IXMLHttpRequest_Release(
xhr);
1807 IServerXMLHTTPRequest *
xhr;
1819 hr = IServerXMLHTTPRequest_send(
xhr,
body);
1820 if (
hr == INET_E_RESOURCE_NOT_FOUND)
1822 skip(
"No connection could be made with test.winehq.org\n");
1823 IServerXMLHTTPRequest_Release(
xhr);
1828 hr = IServerXMLHTTPRequest_get_responseText(
xhr, &response);
1829 ok(
hr ==
S_OK,
"get_responseText failed: %08x\n",
hr);
1833 IServerXMLHTTPRequest_Release(
xhr);
1841 hr = IServerXMLHTTPRequest_send(
xhr,
body);
1845 IServerXMLHTTPRequest_Release(
xhr);
1865 IXMLHttpRequest_Release(
xhr);
1873 IServerXMLHTTPRequest *server_xhr;
1879 hr = IXMLHttpRequest_QueryInterface(
xhr, &IID_ISupportErrorInfo, (
void **)&errorinfo);
1880 ok(
hr ==
S_OK,
"Failed to get ISupportErrorInfo, hr %#x.\n",
hr);
1883 hr = IXMLHttpRequest_QueryInterface(
xhr, &IID_ISupportErrorInfo, (
void **)&errorinfo2);
1884 ok(
hr ==
S_OK,
"Failed to get ISupportErrorInfo, hr %#x.\n",
hr);
1885 ok(errorinfo == errorinfo2,
"Unexpected error info instance.\n");
1888 ISupportErrorInfo_Release(errorinfo2);
1889 ISupportErrorInfo_Release(errorinfo);
1891 IXMLHttpRequest_Release(
xhr);
1897 hr = IServerXMLHTTPRequest_QueryInterface(server_xhr, &IID_ISupportErrorInfo, (
void **)&errorinfo);
1898 ok(
hr ==
S_OK,
"Failed to get ISupportErrorInfo, hr %#x.\n",
hr);
1901 hr = IServerXMLHTTPRequest_QueryInterface(server_xhr, &IID_ISupportErrorInfo, (
void **)&errorinfo2);
1902 ok(
hr ==
S_OK,
"Failed to get ISupportErrorInfo, hr %#x.\n",
hr);
1903 ok(errorinfo == errorinfo2,
"Unexpected error info instance.\n");
1906 ISupportErrorInfo_Release(errorinfo2);
1907 ISupportErrorInfo_Release(errorinfo);
1909 IServerXMLHTTPRequest_Release(server_xhr);
1920 win_skip(
"IXMLHTTPRequest is not available\n");
1925 IXMLHttpRequest_Release(
xhr);
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
static void * heap_alloc(size_t len)
static BOOL heap_free(void *mem)
#define InterlockedIncrement
#define InterlockedDecrement
static const WCHAR empty[]
#define MultiByteToWideChar
int WINAPI lstrcmpW(LPCWSTR str1, LPCWSTR str2)
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)
HRESULT WINAPI GetHGlobalFromStream(IStream *pstm, HGLOBAL *phglobal)
HRESULT WINAPI SafeArrayAccessData(SAFEARRAY *psa, void **ppvData)
HRESULT WINAPI SafeArrayUnaccessData(SAFEARRAY *psa)
UINT WINAPI SafeArrayGetDim(SAFEARRAY *psa)
HRESULT WINAPI SafeArrayGetLBound(SAFEARRAY *psa, UINT nDim, LONG *plLbound)
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLenum const GLfloat * params
GLenum GLuint GLenum GLsizei const GLchar * buf
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static HRESULT WINAPI htmldoc2_get_linkColor(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_selection(IHTMLDocument2 *iface, IHTMLSelectionObject **p)
static HRESULT WINAPI htmldoc2_put_defaultCharset(IHTMLDocument2 *iface, BSTR v)
static int g_expectedcall
static HRESULT WINAPI htmldoc2_toString(IHTMLDocument2 *iface, BSTR *String)
static HRESULT WINAPI htmldoc2_close(IHTMLDocument2 *iface)
static HRESULT WINAPI htmlecoll_item(IHTMLElementCollection *iface, VARIANT name, VARIANT index, IDispatch **pdisp)
static BSTR _bstr_(const char *str)
static HRESULT WINAPI htmlecoll_GetTypeInfoCount(IHTMLElementCollection *iface, UINT *pctinfo)
static HRESULT WINAPI htmldoc2_get_onkeydown(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_onclick(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_nameProp(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI sp_QueryInterface(IServiceProvider *iface, REFIID riid, void **ppvObject)
static HRESULT WINAPI htmldoc2_elementFromPoint(IHTMLDocument2 *iface, LONG x, LONG y, IHTMLElement **elementHit)
static HRESULT WINAPI htmldoc2_put_onclick(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_get_activeElement(IHTMLDocument2 *iface, IHTMLElement **p)
static HRESULT WINAPI htmldoc2_GetTypeInfoCount(IHTMLDocument2 *iface, UINT *pctinfo)
static HRESULT WINAPI htmlecoll_put_length(IHTMLElementCollection *iface, LONG v)
static HRESULT WINAPI htmldoc2_open(IHTMLDocument2 *iface, BSTR url, VARIANT name, VARIANT features, VARIANT replace, IDispatch **pomWindowResult)
static IXMLHttpRequest * httpreq
static int g_unexpectedcall
static HRESULT WINAPI htmldoc2_put_expando(IHTMLDocument2 *iface, VARIANT_BOOL v)
static HRESULT WINAPI htmldoc2_put_vlinkColor(IHTMLDocument2 *iface, VARIANT v)
static BSTR alloced_bstrs[256]
static ULONG WINAPI sp_AddRef(IServiceProvider *iface)
static HRESULT WINAPI htmldoc2_createStyleSheet(IHTMLDocument2 *iface, BSTR bstrHref, LONG lIndex, IHTMLStyleSheet **ppnewStyleSheet)
static HRESULT WINAPI htmlecoll_get__newEnum(IHTMLElementCollection *iface, IUnknown **p)
static HRESULT WINAPI htmldoc2_get_readyState(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_get_fileUpdatedDate(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_get_plugins(IHTMLDocument2 *iface, IHTMLElementCollection **p)
static HRESULT WINAPI htmldoc2_get_designMode(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_get_mimeType(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_createElement(IHTMLDocument2 *iface, BSTR eTag, IHTMLElement **newElem)
static HRESULT WINAPI htmldoc2_get_URL(IHTMLDocument2 *iface, BSTR *p)
static dispevent * impl_from_IDispatch(IDispatch *iface)
static HRESULT WINAPI htmldoc2_get_title(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_get_Script(IHTMLDocument2 *iface, IDispatch **p)
static HRESULT WINAPI htmldoc2_put_linkColor(IHTMLDocument2 *iface, VARIANT v)
static ULONG WINAPI htmlecoll_AddRef(IHTMLElementCollection *iface)
static HRESULT WINAPI dispevent_GetTypeInfo(IDispatch *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
#define EXPECT_HR(hr, hr_exp)
#define test_open(a, b, c, d)
static ULONG WINAPI sp_Release(IServiceProvider *iface)
static HRESULT WINAPI htmldoc2_put_onhelp(IHTMLDocument2 *iface, VARIANT v)
static const char xmltestA[]
static IServiceProvider testprov
static HRESULT WINAPI htmldoc2_put_designMode(IHTMLDocument2 *iface, BSTR v)
static void test_XMLHTTP(void)
static BSTR alloc_str_from_narrow(const char *str)
static HRESULT WINAPI htmldoc2_get_scripts(IHTMLDocument2 *iface, IHTMLElementCollection **p)
static HRESULT WINAPI htmldoc2_get_expando(IHTMLDocument2 *iface, VARIANT_BOOL *p)
static HRESULT WINAPI dispevent_Invoke(IDispatch *iface, DISPID member, REFIID riid, LCID lcid, WORD flags, DISPPARAMS *params, VARIANT *result, EXCEPINFO *excepInfo, UINT *argErr)
static HRESULT WINAPI htmldoc2_get_onmousemove(IHTMLDocument2 *iface, VARIANT *p)
static void _test_open(unsigned line, IXMLHttpRequest *xhr, const char *method, const char *url, HRESULT exhres)
static HRESULT WINAPI site_QueryInterface(IUnknown *iface, REFIID riid, void **ppvObject)
static HRESULT WINAPI htmldoc2_get_parentWindow(IHTMLDocument2 *iface, IHTMLWindow2 **p)
static HRESULT WINAPI htmldoc2_put_onerrorupdate(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_get_fileCreatedDate(IHTMLDocument2 *iface, BSTR *p)
#define EXPECT_REF(node, ref)
static const IServiceProviderVtbl testprovVtbl
static const IHTMLDocument2Vtbl TestHTMLDocumentVtbl
static HRESULT WINAPI htmldoc2_get_onerrorupdate(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_GetIDsOfNames(IHTMLDocument2 *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static ULONG WINAPI site_AddRef(IUnknown *iface)
static void test_server_xhr(void)
static void test_safe_httpreq(void)
static void _expect_ref(IUnknown *obj, ULONG ref, int line)
static HRESULT WINAPI htmldoc2_put_charset(IHTMLDocument2 *iface, BSTR v)
#define DEFINE_EXPECT(func)
static HRESULT WINAPI htmlecoll_tags(IHTMLElementCollection *iface, VARIANT tagName, IDispatch **pdisp)
static HRESULT WINAPI htmlecoll_get_length(IHTMLElementCollection *iface, LONG *v)
static ULONG WINAPI site_Release(IUnknown *iface)
static HRESULT WINAPI htmldoc2_get_defaultCharset(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_get_onkeypress(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmlecoll_Invoke(IHTMLElementCollection *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT WINAPI htmldoc2_put_onmouseover(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_get_onmouseover(IHTMLDocument2 *iface, VARIANT *p)
static int alloced_bstrs_count
static ULONG WINAPI htmlecoll_Release(IHTMLElementCollection *iface)
static HRESULT WINAPI htmldoc2_put_alinkColor(IHTMLDocument2 *iface, VARIANT v)
#define test_server_open(a, b, c, d)
static ULONG WINAPI dispevent_AddRef(IDispatch *iface)
static HRESULT WINAPI htmldoc2_get_links(IHTMLDocument2 *iface, IHTMLElementCollection **p)
static BSTR a2bstr(const char *str)
static HRESULT WINAPI dispevent_QueryInterface(IDispatch *iface, REFIID riid, void **ppvObject)
static void free_bstrs(void)
static HRESULT WINAPI htmldoc2_get_protocol(IHTMLDocument2 *iface, BSTR *p)
static IHTMLDocument2 htmldoc2
static HRESULT WINAPI htmldoc2_get_onbeforeupdate(IHTMLDocument2 *iface, VARIANT *p)
static void test_supporterrorinfo(void)
static IServerXMLHTTPRequest * create_server_xhr(void)
static HRESULT WINAPI htmldoc2_put_onselectstart(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_put_title(IHTMLDocument2 *iface, BSTR v)
static int strcmp_wa(const WCHAR *strw, const char *stra)
static HRESULT WINAPI htmldoc2_put_fgColor(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_put_bgColor(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_get_fgColor(IHTMLDocument2 *iface, VARIANT *p)
static void _test_server_open(unsigned line, IServerXMLHTTPRequest *xhr, const char *method, const char *url, HRESULT exhres)
static HRESULT WINAPI htmldoc2_write(IHTMLDocument2 *iface, SAFEARRAY *psarray)
static HRESULT WINAPI htmldoc2_get_images(IHTMLDocument2 *iface, IHTMLElementCollection **p)
static HRESULT WINAPI dispevent_GetTypeInfoCount(IDispatch *iface, UINT *pctinfo)
static ULONG WINAPI htmldoc2_AddRef(IHTMLDocument2 *iface)
static HRESULT WINAPI htmldoc2_get_ondblclick(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_onselectstart(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_alinkColor(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_domain(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_queryCommandIndeterm(IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL *pfRet)
static HRESULT WINAPI htmldoc2_get_forms(IHTMLDocument2 *iface, IHTMLElementCollection **p)
static IDispatch * create_dispevent(void)
static HRESULT WINAPI htmldoc2_get_fileSize(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_put_onreadystatechange(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_put_onkeyup(IHTMLDocument2 *iface, VARIANT v)
#define CHECK_EXPECT2(func)
static HRESULT WINAPI htmldoc2_QueryInterface(IHTMLDocument2 *iface, REFIID riid, void **ppvObject)
static HRESULT WINAPI htmldoc2_writeln(IHTMLDocument2 *iface, SAFEARRAY *psarray)
static HRESULT WINAPI htmlecoll_GetTypeInfo(IHTMLElementCollection *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static HRESULT WINAPI dispevent_GetIDsOfNames(IDispatch *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static HRESULT WINAPI htmldoc2_queryCommandEnabled(IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL *pfRet)
static HRESULT WINAPI htmldoc2_get_ondragstart(IHTMLDocument2 *iface, VARIANT *p)
static ULONG WINAPI dispevent_Release(IDispatch *iface)
static HRESULT WINAPI htmldoc2_put_onbeforeupdate(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_get_onhelp(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_queryCommandText(IHTMLDocument2 *iface, BSTR cmdID, BSTR *pfRet)
static HRESULT WINAPI htmldoc2_queryCommandState(IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL *pfRet)
static HRESULT WINAPI htmldoc2_put_domain(IHTMLDocument2 *iface, BSTR v)
static HRESULT WINAPI htmldoc2_put_onrowenter(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_get_all(IHTMLDocument2 *iface, IHTMLElementCollection **p)
static HRESULT WINAPI htmldoc2_put_onmousedown(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmlecoll_toString(IHTMLElementCollection *iface, BSTR *String)
static HRESULT WINAPI htmldoc2_execCommandShowHelp(IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL *pfRet)
static HRESULT WINAPI htmldoc2_get_fileModifiedDate(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_put_onkeypress(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_get_body(IHTMLDocument2 *iface, IHTMLElement **p)
static HRESULT WINAPI htmldoc2_execCommand(IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL showUI, VARIANT value, VARIANT_BOOL *pfRet)
static void set_xhr_site(IXMLHttpRequest *xhr)
static HRESULT WINAPI htmldoc2_get_styleSheets(IHTMLDocument2 *iface, IHTMLStyleSheetsCollection **p)
static HRESULT WINAPI htmldoc2_get_embeds(IHTMLDocument2 *iface, IHTMLElementCollection **p)
static HRESULT WINAPI htmldoc2_get_frames(IHTMLDocument2 *iface, IHTMLFramesCollection2 **p)
#define CHECK_CALLED(func)
static IHTMLElementCollection htmlecoll
static HRESULT WINAPI htmldoc2_get_onafterupdate(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_applets(IHTMLDocument2 *iface, IHTMLElementCollection **p)
static IXMLHttpRequest * create_xhr(void)
static HRESULT WINAPI htmldoc2_get_lastModified(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_get_vlinkColor(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_onrowenter(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_cookie(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_put_onkeydown(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_Invoke(IHTMLDocument2 *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
static HRESULT WINAPI htmldoc2_get_bgColor(IHTMLDocument2 *iface, VARIANT *p)
static const IHTMLElementCollectionVtbl TestHTMLECollectionVtbl
static HRESULT WINAPI htmlecoll_QueryInterface(IHTMLElementCollection *iface, REFIID riid, void **ppvObject)
static HRESULT WINAPI htmldoc2_queryCommandSupported(IHTMLDocument2 *iface, BSTR cmdID, VARIANT_BOOL *pfRet)
static HRESULT WINAPI htmldoc2_put_cookie(IHTMLDocument2 *iface, BSTR v)
static HRESULT WINAPI htmldoc2_get_onmousedown(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmlecoll_GetIDsOfNames(IHTMLElementCollection *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
static HRESULT WINAPI htmldoc2_get_anchors(IHTMLDocument2 *iface, IHTMLElementCollection **p)
static HRESULT WINAPI htmldoc2_get_onreadystatechange(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_put_onmouseout(IHTMLDocument2 *iface, VARIANT v)
static void set_safety_opt(IUnknown *unk, DWORD mask, DWORD opts)
static HRESULT WINAPI htmldoc2_get_security(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_queryCommandValue(IHTMLDocument2 *iface, BSTR cmdID, VARIANT *pfRet)
static HRESULT WINAPI htmldoc2_put_onmousemove(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_put_onmouseup(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_put_onafterupdate(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_get_location(IHTMLDocument2 *iface, IHTMLLocation **p)
static BOOL g_enablecallchecks
static HRESULT WINAPI htmldoc2_GetTypeInfo(IHTMLDocument2 *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
static HRESULT WINAPI htmldoc2_put_ondragstart(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_get_onkeyup(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_referrer(IHTMLDocument2 *iface, BSTR *p)
static HRESULT WINAPI htmldoc2_get_onrowexit(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_put_URL(IHTMLDocument2 *iface, BSTR v)
static HRESULT WINAPI htmldoc2_put_ondblclick(IHTMLDocument2 *iface, VARIANT v)
static const CHAR xmltestbodyA[]
static const IUnknownVtbl testsiteVtbl
static ULONG WINAPI htmldoc2_Release(IHTMLDocument2 *iface)
static HRESULT WINAPI htmldoc2_get_onmouseup(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI htmldoc2_get_onmouseout(IHTMLDocument2 *iface, VARIANT *p)
static HRESULT WINAPI sp_QueryService(IServiceProvider *iface, REFGUID service, REFIID riid, void **obj)
static HRESULT WINAPI htmldoc2_clear(IHTMLDocument2 *iface)
static const IDispatchVtbl dispeventVtbl
static HRESULT WINAPI htmldoc2_put_onrowexit(IHTMLDocument2 *iface, VARIANT v)
static HRESULT WINAPI htmldoc2_get_charset(IHTMLDocument2 *iface, BSTR *p)
const IID IID_IObjectWithSite
static const char * strw(LPCWSTR x)
static IHTMLXMLHttpRequest * xhr
static VARIANTARG static DISPID
interface IHTMLWindow2 IHTMLWindow2
const struct _GUID CLSID_XMLHTTPRequest
#define LOCALE_SYSTEM_DEFAULT
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
const GUID IID_IOleClientSite
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
#define IsEqualGUID(rguid1, rguid2)
INT replace(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], DWORD dwFlags, BOOL *doMore)
static __inline const char * wine_dbgstr_guid(const GUID *id)
static const void * body(MD5_CTX *ctx, const void *data, unsigned long size)
#define CONTAINING_RECORD(address, type, field)
HRESULT WINAPI DECLSPEC_HOTPATCH VariantClear(VARIANTARG *pVarg)
void WINAPI VariantInit(VARIANTARG *pVarg)
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
_In_ DWORD _Out_ _In_ WORD wFlags
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD _Outptr_opt_ void ** ppvObject
#define WININET_E_NAME_NOT_RESOLVED
#define DISP_E_MEMBERNOTFOUND