38 "http://www.winehq.org?search#hash",
39 "http://www.winehq.org/?search#hash",
50 "http://www.winehq.org/file?search#hash",
51 "http://www.winehq.org/file?search#hash",
62 "ftp://ftp.winehq.org/",
63 "ftp://ftp.winehq.org/",
74 "ftp://ftp.winehq.org/file",
75 "ftp://ftp.winehq.org/file",
86 "file://C:\\windows\\win.ini",
87 "file:///C:/windows/win.ini",
92 "C:\\windows\\win.ini",
103 return (
void*)
strw == (
void*)stra;
114 hres = IHTMLLocation_get_href(loc,
NULL);
116 "%s: get_href should have failed with E_POINTER (0x%08x), was: 0x%08x\n",
119 hres = IHTMLLocation_get_href(loc, &
str);
123 "%s: expected retrieved href to be L\"%s\", was: %s\n",
127 hres = IHTMLLocation_toString(loc, &
str);
139 hres = IHTMLLocation_get_protocol(loc,
NULL);
141 "%s: get_protocol should have failed with E_POINTER (0x%08x), was: 0x%08x\n",
144 hres = IHTMLLocation_get_protocol(loc, &
str);
148 "%s: expected retrieved protocol to be L\"%s\", was: %s\n",
158 hres = IHTMLLocation_get_host(loc,
NULL);
160 "%s: get_host should have failed with E_POINTER (0x%08x), was: 0x%08x\n",
163 hres = IHTMLLocation_get_host(loc, &
str);
167 "%s: expected retrieved host to be L\"%s\", was: %s\n",
177 hres = IHTMLLocation_get_hostname(loc,
NULL);
179 "%s: get_hostname should have failed with E_POINTER (0x%08x), was: 0x%08x\n",
182 hres = IHTMLLocation_get_hostname(loc, &
str);
186 "%s: expected retrieved hostname to be L\"%s\", was: %s\n",
190 hres = IHTMLDocument2_get_domain(doc, &
str);
194 "%s: expected retrieved domain to be L\"%s\", was: %s\n",
204 hres = IHTMLLocation_get_port(loc,
NULL);
206 "%s: get_port should have failed with E_POINTER (0x%08x), was: 0x%08x\n",
209 hres = IHTMLLocation_get_port(loc, &
str);
213 "%s: expected retrieved port to be L\"%s\", was: %s\n",
223 hres = IHTMLLocation_get_pathname(loc,
NULL);
225 "%s: get_pathname should have failed with E_POINTER (0x%08x), was: 0x%08x\n",
228 hres = IHTMLLocation_get_pathname(loc, &
str);
232 "%s: expected retrieved pathname to be L\"%s\", was: %s\n",
242 hres = IHTMLLocation_get_search(loc,
NULL);
244 "%s: get_search should have failed with E_POINTER (0x%08x), was: 0x%08x\n",
247 hres = IHTMLLocation_get_search(loc, &
str);
251 "%s: expected retrieved search to be L\"%s\", was: %s\n",
261 hres = IHTMLLocation_get_hash(loc,
NULL);
263 "%s: get_hash should have failed with E_POINTER (0x%08x), was: 0x%08x\n",
266 hres = IHTMLLocation_get_hash(loc, &
str);
270 "%s: expected retrieved hash to be L\"%s\", was: %s\n",
283 IHTMLDocument6 *doc6;
295 IBindCtx_Release(
bc);
300 CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER, &IID_IHTMLDocument2,
304 IMoniker_Release(url_mon);
305 IBindCtx_Release(
bc);
309 hres = IHTMLDocument2_QueryInterface(doc, &IID_IHTMLDocument6, (
void**)&doc6);
311 IHTMLDocument6_Release(doc6);
313 win_skip(
"%s: Could not get IHTMLDocument6, probably too old IE. Requires IE 8+\n",
test->
name);
314 IMoniker_Release(url_mon);
315 IBindCtx_Release(
bc);
319 hres = IHTMLDocument2_QueryInterface(doc, &IID_IPersistMoniker,
320 (
void**)&persist_mon);
323 IHTMLDocument2_Release(doc);
324 IMoniker_Release(url_mon);
325 IBindCtx_Release(
bc);
329 hres = IPersistMoniker_Load(persist_mon,
FALSE, url_mon,
bc,
333 IPersistMoniker_Release(persist_mon);
334 IHTMLDocument2_Release(doc);
335 IMoniker_Release(url_mon);
336 IBindCtx_Release(
bc);
343 IPersistMoniker_Release(persist_mon);
344 IHTMLDocument2_Release(doc);
345 IMoniker_Release(url_mon);
346 IBindCtx_Release(
bc);
360 IPersistMoniker_Release(persist_mon);
361 IHTMLDocument2_Release(doc);
362 IMoniker_Release(url_mon);
363 IBindCtx_Release(
bc);
#define WideCharToMultiByte
#define MultiByteToWideChar
int WINAPI lstrcmpA(LPCSTR str1, LPCSTR 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)
#define INTERNET_MAX_URL_LENGTH
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
#define location(file, line)
static enum @1673 test_protocol
static const char * strw(LPCWSTR x)
static void perform_test(const struct location_test *test)
static void test_hostname(IHTMLLocation *loc, IHTMLDocument2 *doc, const struct location_test *test)
static void test_pathname(IHTMLLocation *loc, const struct location_test *test)
static void test_host(IHTMLLocation *loc, const struct location_test *test)
static void test_port(IHTMLLocation *loc, const struct location_test *test)
static void test_hash(IHTMLLocation *loc, const struct location_test *test)
static void test_search(IHTMLLocation *loc, const struct location_test *test)
static const struct location_test location_tests[]
static int str_eq_wa(LPCWSTR strw, const char *stra)
static void test_href(IHTMLLocation *loc, const struct location_test *test)
#define STGM_SHARE_EXCLUSIVE
HRESULT WINAPI CreateBindCtx(DWORD reserved, LPBC *ppbc)
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **ppmk)