Actually with Qt5, we're back to the initial kde4 behavior here...

I submitted https://codereview.qt-project.org/43518 though, to fix it.
This commit is contained in:
David Faure 2012-12-21 19:08:00 +01:00
parent 97817f0474
commit 026c185eb1

View File

@ -33,7 +33,7 @@ void RunnerContextTest::typeDetection_data()
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::NetworkLocation; // QUrl::fromUserInput changes this compared to KDE4
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;
QTest::newRow("file triple slash") << "file:///home" << Plasma::RunnerContext::Directory;