mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kdecore: add comment about the re-construction of the URL in KUrlTest::testHash()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
47d0b5a297
commit
db7fb2a8ee
1 changed files with 3 additions and 1 deletions
|
@ -52,6 +52,7 @@ void KUrlTest::testHash()
|
|||
QFETCH(KUrl, url);
|
||||
|
||||
{
|
||||
// re-construction on purpose
|
||||
KUrl testurl;
|
||||
testurl.setScheme(url.scheme());
|
||||
testurl.setAuthority(url.authority());
|
||||
|
@ -70,6 +71,7 @@ void KUrlTest::testHash()
|
|||
if (url.isLocalFile()) {
|
||||
return;
|
||||
}
|
||||
|
||||
KUrl testurl(url);
|
||||
QCOMPARE(qHash(testurl), qHash(url));
|
||||
QCOMPARE(qHash(testurl), qHash(testurl));
|
||||
|
@ -210,7 +212,7 @@ void KUrlTest::testToLocalFile()
|
|||
const KUrl urlWithoutHost("file:///tmp/print.pdf");
|
||||
|
||||
QCOMPARE(urlWithHost.toLocalFile(), localFile);
|
||||
QCOMPARE(urlWithoutHost.toLocalFile(), localFile );
|
||||
QCOMPARE(urlWithoutHost.toLocalFile(), localFile);
|
||||
}
|
||||
|
||||
void KUrlTest::testUrl_data()
|
||||
|
|
Loading…
Add table
Reference in a new issue