KUrl(QString) fix
Ralf Habacker
ralf.habacker at freenet.de
Wed Dec 20 16:48:38 GMT 2006
David Faure schrieb:
> On Wednesday 20 December 2006 17:02, Leonardo Stern wrote:
>
>> Greetings,
>>
>> KUrl kurl("file:///foo/bar")
>> path() == "/foo/bar" (not "foo/bar).
>>
> The breakage was on windows only, right?
> Someone should really run kurltest (from kdecore/tests) on windows (it passes fine on unix).
>
below are listed the failed tests
...
FAIL! : KUrlTest::testSimpleMethods() Compared values are not the same
Actual (url1.url()): file:///home/dfaure/my%23/
Expected (QString("file:///home/dfaure/my#/")): file:///home/dfaure/my#/
F:\daten\kdelibs\kdecore\tests\kurltest.cpp(231) : failure location
...
FAIL! : KUrlTest::testBaseURL() Compared values are not the same
Actual (url2.url()):
file:///usr/local/src/kde2/kdelibs/kio/../../////kdebase/konqueror
Expected (QString("file:///usr/local/src/kde2/////kdebase/konqueror"
)): file:///usr/local/src/kde2/////kdebase/konqueror
F:\daten\kdelibs\kdecore\tests\kurltest.cpp(839) : failure location
QDEBUG : KUrlTest::testBrokenStuff() kDebug 126[5180] kdecore (KUrl):
KUrl::KUrl ptal://mlc:usb:PC_970
SKIP : KUrlTest::testBrokenStuff() QUrl doesn't provide the initial
string if it's an invalid url; asked for 4.2...
F:\daten\kdelibs\kdecore\tests\kurltest.cpp(1282) : failure location
FAIL! : KUrlTest::testPathOrURL() Compared values are not the same
Actual (uloc.path()): /home/dfaure/konqtests/Mat?riel
Expected (QString("/home/dfaure/konqtests/Mat%C3%A9riel")):
/home/dfaure/konqtests/Mat%C3%A9riel
F:\daten\kdelibs\kdecore\tests\kurltest.cpp(1414) : failure location
FAIL! : KUrlTest::testAssignment() Compared values are not the same
Actual (uloc.path()): /home/dfaure/konqtests/Mat?riel
Expected (QString("/home/dfaure/konqtests/Mat%C3%A9riel")):
/home/dfaure/konqtests/Mat%C3%A9riel
F:\daten\kdelibs\kdecore\tests\kurltest.cpp(1458) : failure location
...
Totals: 36 passed, 4 failed, 2 skipped
Ralf
More information about the kde-core-devel
mailing list