Changeset View
Changeset View
Standalone View
Standalone View
autotests/kprotocolinfotest.cpp
Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Line(s) | |||||
134 | } | 134 | } | ||
135 | 135 | | |||
136 | void KProtocolInfoTest::testProtocolForArchiveMimetype() | 136 | void KProtocolInfoTest::testProtocolForArchiveMimetype() | ||
137 | { | 137 | { | ||
138 | if (!QFile::exists(QStandardPaths::locate(QStandardPaths::GenericDataLocation, QLatin1String("kservices5/") + "zip.protocol"))) { | 138 | if (!QFile::exists(QStandardPaths::locate(QStandardPaths::GenericDataLocation, QLatin1String("kservices5/") + "zip.protocol"))) { | ||
139 | QSKIP("kdebase not installed"); | 139 | QSKIP("kdebase not installed"); | ||
140 | } else { | 140 | } else { | ||
141 | const QString zip = KProtocolManager::protocolForArchiveMimetype(QStringLiteral("application/zip")); | 141 | const QString zip = KProtocolManager::protocolForArchiveMimetype(QStringLiteral("application/zip")); | ||
142 | QCOMPARE(zip, QStringLiteral("zip")); | 142 | QVERIFY(zip == QLatin1String("zip") || zip == QLatin1String("krarc")); | ||
143 | } | 143 | } | ||
144 | } | 144 | } | ||
145 | 145 | | |||
146 | void KProtocolInfoTest::testHelperProtocols() | 146 | void KProtocolInfoTest::testHelperProtocols() | ||
147 | { | 147 | { | ||
148 | QVERIFY(!KProtocolInfo::isHelperProtocol(QStringLiteral("http"))); | 148 | QVERIFY(!KProtocolInfo::isHelperProtocol(QStringLiteral("http"))); | ||
149 | QVERIFY(!KProtocolInfo::isHelperProtocol(QStringLiteral("ftp"))); | 149 | QVERIFY(!KProtocolInfo::isHelperProtocol(QStringLiteral("ftp"))); | ||
150 | QVERIFY(!KProtocolInfo::isHelperProtocol(QStringLiteral("file"))); | 150 | QVERIFY(!KProtocolInfo::isHelperProtocol(QStringLiteral("file"))); | ||
Show All 31 Lines |