mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 18:49:33 +00:00
shlwapi: Simple test for UrlCanonicalizeA.
This commit is contained in:
parent
d1d5f4b646
commit
531ee64e79
|
@ -488,6 +488,7 @@ static void test_UrlCanonicalize(void)
|
|||
unsigned int i;
|
||||
CHAR szReturnUrl[INTERNET_MAX_URL_LENGTH];
|
||||
DWORD dwSize;
|
||||
HRESULT hr;
|
||||
|
||||
for(i=0; i<sizeof(TEST_CANONICALIZE)/sizeof(TEST_CANONICALIZE[0]); i++) {
|
||||
test_url_canonicalize(TEST_CANONICALIZE[i].url, TEST_CANONICALIZE[i].flags,
|
||||
|
@ -500,6 +501,14 @@ static void test_UrlCanonicalize(void)
|
|||
todo_wine {
|
||||
ok(strcmp(szReturnUrl,"file:///c:/tests/foo%20bar")==0, "UrlCanonicalizeA got %s\n", szReturnUrl);
|
||||
}
|
||||
|
||||
dwSize = sizeof szReturnUrl;
|
||||
/*LimeWire online installer calls this*/
|
||||
hr = UrlCanonicalizeA("/uri-res/N2R?urn:sha1:B3K", szReturnUrl, &dwSize,URL_DONT_ESCAPE_EXTRA_INFO | URL_WININET_COMPATIBILITY /*0x82000000*/);
|
||||
ok(hr==S_OK,"UrlCanonicalizeA returned 0x%08lx instead of S_OK\n", hr);
|
||||
todo_wine {
|
||||
ok(strcmp(szReturnUrl,"/uri-res/N2R?urn:sha1:B3K")==0, "UrlCanonicalizeA got \"%s\" instead of \"/uri-res/N2R?urn:sha1:B3K\"\n", szReturnUrl);
|
||||
}
|
||||
}
|
||||
|
||||
static void test_url_combine(const char *szUrl1, const char *szUrl2, DWORD dwFlags, HRESULT dwExpectReturn, const char *szExpectUrl)
|
||||
|
|
Loading…
Reference in a new issue