urlmon: Remove some CoInternetParseUrl tests.
Some tests with PARSE_DOMAIN flag fails on older urlmon.
This commit is contained in:
parent
1402e954ab
commit
c72a7d471a
|
@ -340,12 +340,15 @@ static void test_CoInternetParseUrl(void)
|
||||||
ok(size == lstrlenW(parse_tests[i].schema), "[%d] wrong size\n", i);
|
ok(size == lstrlenW(parse_tests[i].schema), "[%d] wrong size\n", i);
|
||||||
ok(!lstrcmpW(parse_tests[i].schema, buf), "[%d] wrong schema\n", i);
|
ok(!lstrcmpW(parse_tests[i].schema, buf), "[%d] wrong schema\n", i);
|
||||||
|
|
||||||
memset(buf, 0xf0, sizeof(buf));
|
if(memcmp(parse_tests[i].url, wszRes, 3*sizeof(WCHAR))
|
||||||
hres = CoInternetParseUrl(parse_tests[i].url, PARSE_DOMAIN, 0, buf,
|
&& memcmp(parse_tests[i].url, wszAbout, 5*sizeof(WCHAR))) {
|
||||||
sizeof(buf)/sizeof(WCHAR), &size, 0);
|
memset(buf, 0xf0, sizeof(buf));
|
||||||
ok(hres == parse_tests[i].domain_hres, "[%d] domain failed: %08x\n", i, hres);
|
hres = CoInternetParseUrl(parse_tests[i].url, PARSE_DOMAIN, 0, buf,
|
||||||
if(parse_tests[i].domain)
|
sizeof(buf)/sizeof(WCHAR), &size, 0);
|
||||||
ok(!lstrcmpW(parse_tests[i].domain, buf), "[%d] wrong domain, received %s\n", i, wine_dbgstr_w(buf));
|
ok(hres == parse_tests[i].domain_hres, "[%d] domain failed: %08x\n", i, hres);
|
||||||
|
if(parse_tests[i].domain)
|
||||||
|
ok(!lstrcmpW(parse_tests[i].domain, buf), "[%d] wrong domain, received %s\n", i, wine_dbgstr_w(buf));
|
||||||
|
}
|
||||||
|
|
||||||
memset(buf, 0xf0, sizeof(buf));
|
memset(buf, 0xf0, sizeof(buf));
|
||||||
hres = CoInternetParseUrl(parse_tests[i].url, PARSE_ROOTDOCUMENT, 0, buf,
|
hres = CoInternetParseUrl(parse_tests[i].url, PARSE_ROOTDOCUMENT, 0, buf,
|
||||||
|
|
Loading…
Reference in New Issue