mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
urlmon/tests: Run the tests again on W95B (CoInternetParseUrl).
This commit is contained in:
parent
d5e4666e6a
commit
0838495596
1 changed files with 15 additions and 3 deletions
|
@ -63,6 +63,8 @@ DEFINE_EXPECT(QI_IInternetProtocolInfo);
|
||||||
DEFINE_EXPECT(CreateInstance);
|
DEFINE_EXPECT(CreateInstance);
|
||||||
DEFINE_EXPECT(unk_Release);
|
DEFINE_EXPECT(unk_Release);
|
||||||
|
|
||||||
|
static HRESULT (WINAPI *pCoInternetCompareUrl)(LPCWSTR, LPCWSTR, DWORD);
|
||||||
|
|
||||||
static void test_CreateFormatEnum(void)
|
static void test_CreateFormatEnum(void)
|
||||||
{
|
{
|
||||||
IEnumFORMATETC *fenum = NULL, *fenum2 = NULL;
|
IEnumFORMATETC *fenum = NULL, *fenum2 = NULL;
|
||||||
|
@ -363,13 +365,18 @@ static void test_CoInternetCompareUrl(void)
|
||||||
{
|
{
|
||||||
HRESULT hres;
|
HRESULT hres;
|
||||||
|
|
||||||
hres = CoInternetCompareUrl(url1, url1, 0);
|
if (!pCoInternetCompareUrl) {
|
||||||
|
win_skip("CoInternetCompareUrl not found\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
hres = pCoInternetCompareUrl(url1, url1, 0);
|
||||||
ok(hres == S_OK, "CoInternetParseUrl failed: %08x\n", hres);
|
ok(hres == S_OK, "CoInternetParseUrl failed: %08x\n", hres);
|
||||||
|
|
||||||
hres = CoInternetCompareUrl(url1, url3, 0);
|
hres = pCoInternetCompareUrl(url1, url3, 0);
|
||||||
ok(hres == S_FALSE, "CoInternetParseUrl failed: %08x\n", hres);
|
ok(hres == S_FALSE, "CoInternetParseUrl failed: %08x\n", hres);
|
||||||
|
|
||||||
hres = CoInternetCompareUrl(url3, url1, 0);
|
hres = pCoInternetCompareUrl(url3, url1, 0);
|
||||||
ok(hres == S_FALSE, "CoInternetParseUrl failed: %08x\n", hres);
|
ok(hres == S_FALSE, "CoInternetParseUrl failed: %08x\n", hres);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1402,10 +1409,15 @@ static void test_IsValidURL(void)
|
||||||
|
|
||||||
START_TEST(misc)
|
START_TEST(misc)
|
||||||
{
|
{
|
||||||
|
HMODULE hurlmon;
|
||||||
|
|
||||||
OleInitialize(NULL);
|
OleInitialize(NULL);
|
||||||
|
|
||||||
register_protocols();
|
register_protocols();
|
||||||
|
|
||||||
|
hurlmon = GetModuleHandle("urlmon.dll");
|
||||||
|
pCoInternetCompareUrl = (void *) GetProcAddress(hurlmon, "CoInternetCompareUrl");
|
||||||
|
|
||||||
test_CreateFormatEnum();
|
test_CreateFormatEnum();
|
||||||
test_RegisterFormatEnumerator();
|
test_RegisterFormatEnumerator();
|
||||||
test_CoInternetParseUrl();
|
test_CoInternetParseUrl();
|
||||||
|
|
Loading…
Reference in a new issue