From b68a8147b261722a18509dbc411c5e58347dcbb9 Mon Sep 17 00:00:00 2001 From: David Faure Date: Sat, 18 Aug 2012 22:47:41 +0200 Subject: [PATCH] Update expected test result after port to QUrl --- tests/runnercontexttest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)