kdecore: adjust tests to recent changes

23081b4d08
a8a54f0484

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2016-03-31 18:42:12 +00:00
parent 1ef7518fb0
commit d41a40607a
2 changed files with 2 additions and 2 deletions

View file

@ -952,7 +952,7 @@ void KMimeTypeTest::testHelperProtocols()
QVERIFY2(KProtocolInfo::exec("mailto").contains(QLatin1String("kmail -caption ")), // comes from KMail2.desktop
qPrintable(KProtocolInfo::exec("mailto")));
} else {
QCOMPARE(KProtocolInfo::exec("mailto"), QLatin1String("kmailservice %u"));
QCOMPARE(KProtocolInfo::exec("mailto"), QLatin1String("kmailservice --icon '%i' --caption '%c' %u"));
}

View file

@ -125,7 +125,7 @@ void KUrlMimeTest::testMostLocalUrlList()
QCOMPARE(decodedURLs.toStringList().join(" "), urls.toStringList().join(" ") );
// KUrl can also be told to decode the "most local" urls
decodedURLs = KUrl::List::fromMimeData(mimeData, KUrl::List::PreferLocalUrls);
decodedURLs = KUrl::List::fromMimeData(mimeData, 0, KUrl::List::PreferLocalUrls);
QVERIFY(!decodedURLs.isEmpty());
QCOMPARE(decodedURLs.toStringList().join(" "), localUrls.toStringList().join(" ") );