Jacek Caban : mshtml/tests: Include leading path slash in location test array.

Alexandre Julliard julliard at winehq.org
Tue May 28 15:06:51 CDT 2019


Module: wine
Branch: master
Commit: adeb76bd15a4acdd741fc7ba66239e0ba230257b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=adeb76bd15a4acdd741fc7ba66239e0ba230257b

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue May 28 17:33:44 2019 +0200

mshtml/tests: Include leading path slash in location test array.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mshtml/tests/htmllocation.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/dlls/mshtml/tests/htmllocation.c b/dlls/mshtml/tests/htmllocation.c
index 4781de9..3d81eb6 100644
--- a/dlls/mshtml/tests/htmllocation.c
+++ b/dlls/mshtml/tests/htmllocation.c
@@ -47,7 +47,7 @@ static const struct location_test location_tests[] = {
         "www.winehq.org:80",
         "www.winehq.org",
         "80",
-        "",
+        "/",
         "?search",
         "#hash"
     },
@@ -59,7 +59,7 @@ static const struct location_test location_tests[] = {
         "www.winehq.org:80",
         "www.winehq.org",
         "80",
-        "file",
+        "/file",
         "?search",
         "#hash"
     },
@@ -71,7 +71,7 @@ static const struct location_test location_tests[] = {
         "ftp.winehq.org:21",
         "ftp.winehq.org",
         "21",
-        "",
+        "/",
         NULL,
         NULL
     },
@@ -83,7 +83,7 @@ static const struct location_test location_tests[] = {
         "ftp.winehq.org:21",
         "ftp.winehq.org",
         "21",
-        "file",
+        "/file",
         NULL,
         NULL
     },
@@ -240,7 +240,7 @@ static void test_pathname(IHTMLLocation *loc, const struct location_test *test)
     hres = IHTMLLocation_get_pathname(loc, &str);
     ok(hres == S_OK, "%s: get_pathname failed: 0x%08x\n", test->name, hres);
     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",
                 test->name, test->pathname, wine_dbgstr_w(str));
     SysFreeString(str);




More information about the wine-cvs mailing list