KURL problem
Andras Mantia
amantia at kde.org
Tue Sep 27 12:16:40 BST 2005
On Tuesday 27 September 2005 14:01, Andras Mantia wrote:
> The attached kurltext.cpp addition proves it:
...proves that the result for both is the same. The fact that this
result has the "/" in the end is proven if you use an extra debug
output there or the following test:
KURL ftpurl1("ftp://ftp.kde.org/");
ftpurl1.adjustPath(-1);
KURL ftpurl2("ftp://ftp.kde.org///");
ftpurl2.adjustPath(-1);
check("adjustPath(-1): remove multiple slashes", ((ftpurl1.url() !=
ftpurl2.url())?"ko":"ok"), "ok");
check("adjustPath(-1): check not removing the last slash",
((QString("ftp://ftp.kde.org/") != ftpurl2.url())?"ko":"ok"), "ok");
Andras
--
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050927/d167c011/attachment.sig>
More information about the kde-core-devel
mailing list