$OpenBSD: patch-kdecore_tests_kurltest_cpp,v 1.2 2007/10/24 21:52:18 espie Exp $
--- kdecore/tests/kurltest.cpp.orig	Mon Oct  8 11:51:54 2007
+++ kdecore/tests/kurltest.cpp	Thu Oct 18 00:38:52 2007
@@ -298,6 +298,16 @@ int main(int argc, char *argv[])
   check("KURL::prettyURL()", whitespaceInPath2.prettyURL(),
           "http://www.google.com/foo%20%20%20%20%20%20 bar/");
 
+  KURL whitespaceInUser("http://www.google.com%20%20%20%20%20@foobar.com/");
+  check("KURL::prettyURL()", whitespaceInUser.prettyURL(), "http://www.google.com%20%20%20%20%20@foobar.com/");
+
+  KURL whitespaceInPath("http://www.google.com/foo%20bar/");
+  check("KURL::prettyURL()", whitespaceInPath.prettyURL(), "http://www.google.com/foo bar/");
+
+   KURL whitespaceInPath2("http://www.google.com/foo%20%20%20%20%20%20%20bar/");
+  check("KURL::prettyURL()", whitespaceInPath2.prettyURL(),
+          "http://www.google.com/foo%20%20%20%20%20%20 bar/");
+
   KURL carsten;
   carsten.setPath("/home/gis/src/kde/kdelibs/kfile/.#kfiledetailview.cpp.1.18");
   check("KURL::path()", carsten.path(), "/home/gis/src/kde/kdelibs/kfile/.#kfiledetailview.cpp.1.18");
@@ -603,6 +613,15 @@ int main(int argc, char *argv[])
         "http://meine.db24.de#link=home_c_login_login");
   check("http: URL with empty path string path", waba1.path(),
         "");
+
+  waba1 = "http://www.meinestadt.de&url_plain=http";
+  check("http: URL with empty path string", waba1.host(),
+         "www.meinestadt.de&url_plain=http");
+  check("http: URL with empty path string", waba1.htmlURL(),
+         "http://www.meinestadt.de&amp;url_plain=http");
+ 
+  check("http: URL with empty path string", waba1.path(),
+         "");
 
   waba1 = "http://www.meinestadt.de&url_plain=http";
   check("http: URL with empty path string", waba1.host(),
