skip man:/ tests if the protocol file isn't installed (kdebase not installed)
svn path=/trunk/KDE/kdelibs/; revision=1205004
This commit is contained in:
parent
9c9499cfbb
commit
125db2a0ad
@ -19,6 +19,7 @@
|
||||
|
||||
#include "runnercontexttest.h"
|
||||
|
||||
#include <kprotocolinfo.h>
|
||||
#include "plasma/runnercontext.h"
|
||||
|
||||
Q_DECLARE_METATYPE(Plasma::RunnerContext::Type)
|
||||
@ -28,8 +29,10 @@ void RunnerContextTest::typeDetection_data()
|
||||
QTest::addColumn<QString>("url");
|
||||
QTest::addColumn<Plasma::RunnerContext::Type>("type");
|
||||
|
||||
if (KProtocolInfo::isKnownProtocol("man")) {
|
||||
QTest::newRow("man page listing") << "man:/" << Plasma::RunnerContext::NetworkLocation;
|
||||
QTest::newRow("ls man page listing") << "man://ls" << Plasma::RunnerContext::NetworkLocation;
|
||||
}
|
||||
QTest::newRow("http without host") << "http://" << Plasma::RunnerContext::UnknownType;
|
||||
QTest::newRow("http with host") << "http://kde.org" << Plasma::RunnerContext::NetworkLocation;
|
||||
QTest::newRow("file double slash") << "file://home" << Plasma::RunnerContext::Directory;
|
||||
|
Loading…
Reference in New Issue
Block a user