diff --git a/tests/runnercontexttest.cpp b/tests/runnercontexttest.cpp index 92055a4a0..52319198a 100644 --- a/tests/runnercontexttest.cpp +++ b/tests/runnercontexttest.cpp @@ -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)