Update expected test result after port to QUrl
This commit is contained in:
parent
fa8d1046ef
commit
b68a8147b2
@ -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::UnknownType;
|
||||
QTest::newRow("http without host") << "http://" << Plasma::RunnerContext::NetworkLocation; // QUrl::fromUserInput changes this compared to KDE4
|
||||
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;
|
||||
@ -54,7 +54,7 @@ void RunnerContextTest::typeDetection()
|
||||
QFETCH(Plasma::RunnerContext::Type, type);
|
||||
|
||||
m_context.setQuery(url);
|
||||
QCOMPARE(m_context.type(), type);
|
||||
QCOMPARE(int(m_context.type()), int(type));
|
||||
}
|
||||
|
||||
QTEST_KDEMAIN(RunnerContextTest, NoGUI)
|
||||
|
Loading…
Reference in New Issue
Block a user