mshtml/tests: Include leading path slash in location test array.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6941232d8b
commit
adeb76bd15
|
@ -47,7 +47,7 @@ static const struct location_test location_tests[] = {
|
||||||
"www.winehq.org:80",
|
"www.winehq.org:80",
|
||||||
"www.winehq.org",
|
"www.winehq.org",
|
||||||
"80",
|
"80",
|
||||||
"",
|
"/",
|
||||||
"?search",
|
"?search",
|
||||||
"#hash"
|
"#hash"
|
||||||
},
|
},
|
||||||
|
@ -59,7 +59,7 @@ static const struct location_test location_tests[] = {
|
||||||
"www.winehq.org:80",
|
"www.winehq.org:80",
|
||||||
"www.winehq.org",
|
"www.winehq.org",
|
||||||
"80",
|
"80",
|
||||||
"file",
|
"/file",
|
||||||
"?search",
|
"?search",
|
||||||
"#hash"
|
"#hash"
|
||||||
},
|
},
|
||||||
|
@ -71,7 +71,7 @@ static const struct location_test location_tests[] = {
|
||||||
"ftp.winehq.org:21",
|
"ftp.winehq.org:21",
|
||||||
"ftp.winehq.org",
|
"ftp.winehq.org",
|
||||||
"21",
|
"21",
|
||||||
"",
|
"/",
|
||||||
NULL,
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
},
|
},
|
||||||
|
@ -83,7 +83,7 @@ static const struct location_test location_tests[] = {
|
||||||
"ftp.winehq.org:21",
|
"ftp.winehq.org:21",
|
||||||
"ftp.winehq.org",
|
"ftp.winehq.org",
|
||||||
"21",
|
"21",
|
||||||
"file",
|
"/file",
|
||||||
NULL,
|
NULL,
|
||||||
NULL
|
NULL
|
||||||
},
|
},
|
||||||
|
@ -240,7 +240,7 @@ static void test_pathname(IHTMLLocation *loc, const struct location_test *test)
|
||||||
hres = IHTMLLocation_get_pathname(loc, &str);
|
hres = IHTMLLocation_get_pathname(loc, &str);
|
||||||
ok(hres == S_OK, "%s: get_pathname failed: 0x%08x\n", test->name, hres);
|
ok(hres == S_OK, "%s: get_pathname failed: 0x%08x\n", test->name, hres);
|
||||||
if(hres == S_OK)
|
if(hres == S_OK)
|
||||||
ok(str_eq_wa(str, test->pathname),
|
ok(str_eq_wa(str, *test->pathname == '/' ? test->pathname + 1 : test->pathname),
|
||||||
"%s: expected retrieved pathname to be L\"%s\", was: %s\n",
|
"%s: expected retrieved pathname to be L\"%s\", was: %s\n",
|
||||||
test->name, test->pathname, wine_dbgstr_w(str));
|
test->name, test->pathname, wine_dbgstr_w(str));
|
||||||
SysFreeString(str);
|
SysFreeString(str);
|
||||||
|
|
Loading…
Reference in New Issue