Detlef Riekenberg : shlwapi/tests: Add more entries for PathIsURL.

Alexandre Julliard julliard at winehq.org
Mon Nov 10 07:43:54 CST 2008


Module: wine
Branch: master
Commit: 4621210b59c3698936b786997bd6d220980cc5dd
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4621210b59c3698936b786997bd6d220980cc5dd

Author: Detlef Riekenberg <wine.dev at web.de>
Date:   Sun Nov  9 19:19:51 2008 +0100

shlwapi/tests: Add more entries for PathIsURL.

---

 dlls/shlwapi/tests/path.c |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/dlls/shlwapi/tests/path.c b/dlls/shlwapi/tests/path.c
index cc9ded5..3f9c9e6 100644
--- a/dlls/shlwapi/tests/path.c
+++ b/dlls/shlwapi/tests/path.c
@@ -82,7 +82,26 @@ static struct {
     {"foo.bar", FALSE},
     {"bogusscheme:", TRUE},
     {"http:partial", TRUE},
-    {"www.winehq.org", FALSE}
+    {"www.winehq.org", FALSE},
+    /* More examples that the user might enter as the browser start page */
+    {"winehq.org", FALSE},
+    {"ftp.winehq.org", FALSE},
+    {"http://winehq.org", TRUE},
+    {"http://www.winehq.org", TRUE},
+    {"https://winehq.org", TRUE},
+    {"https://www.winehq.org", TRUE},
+    {"ftp://winehq.org", TRUE},
+    {"ftp://ftp.winehq.org", TRUE},
+    {"file://does_not_exist.txt", TRUE},
+    {"about:blank", TRUE},
+    {"about:home", TRUE},
+    {"about:mozilla", TRUE},
+    /* scheme is case independent */
+    {"HTTP://www.winehq.org", TRUE},
+    /* a space at the start is not allowed */
+    {" http://www.winehq.org", FALSE},
+    {"", FALSE},
+    {NULL, FALSE}
 };
 
 struct {




More information about the wine-cvs mailing list