Update expected test result after port to QUrl

This commit is contained in:
David Faure 2012-08-18 22:47:41 +02:00
parent fa8d1046ef
commit b68a8147b2

View File

@ -33,7 +33,7 @@ void RunnerContextTest::typeDetection_data()
QTest::newRow("man page listing") << "man:/" << Plasma::RunnerContext::NetworkLocation; QTest::newRow("man page listing") << "man:/" << Plasma::RunnerContext::NetworkLocation;
QTest::newRow("ls man page listing") << "man://ls" << 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("http with host") << "http://kde.org" << Plasma::RunnerContext::NetworkLocation;
QTest::newRow("file double slash") << "file://home" << Plasma::RunnerContext::Directory; QTest::newRow("file double slash") << "file://home" << Plasma::RunnerContext::Directory;
QTest::newRow("file triple 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); QFETCH(Plasma::RunnerContext::Type, type);
m_context.setQuery(url); m_context.setQuery(url);
QCOMPARE(m_context.type(), type); QCOMPARE(int(m_context.type()), int(type));
} }
QTEST_KDEMAIN(RunnerContextTest, NoGUI) QTEST_KDEMAIN(RunnerContextTest, NoGUI)