KUrl behavior.
Leonardo Stern
leonardo.stern at gmail.com
Wed Dec 20 06:47:19 CET 2006
I need to get some sleep ...
> So if I have KUrl kurl(""file:///home/dfaure/my#%2f""), I should expect :
>
> kurl.url() == "file:///home/dfaure/my%23%2f"
kurl.url() == "file///home/dfaure/my%23/"
> kurl.path() == "file:///home/dfaure/my#/" ?
kurl.path() == "/home/dfaure/my#/"
> In "kdecore/tests/kurltest.cpp" I found the following testcase (line 228):
>
> /* KUrl url1; QString u1 */
> u1 = "file:///home/dfaure/my#%2f";
> url1 = u1;
> // KDE3: was %2f, but this is OK too
> QCOMPARE( url1.url(), QString("file:///home/dfaure/my#/") );
>
> but url1.url() returns "file:///home/dfaure/my%23/"
should be :
QCOMPARE( url1.url(), QString("file:///home/dfaure/my%23/"));
or
QCOMPARE ( url1.path() , QString("/home/dfaure/my#/"));
Sorry for my mistake. I'll return to kurl tests and send a
patch/comments when done.
regards,
Leonardo Stern
More information about the Kde-windows
mailing list