summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <aleixpol@kde.org>2017-04-11 12:14:21 (GMT)
committerAleix Pol <aleixpol@kde.org>2017-04-12 14:53:31 (GMT)
commit4d3dac45ef5651f15721a0cf88c4682b203242e2 (patch)
tree7497ec28d492eddfb4155d265996d5f49762cf13
parent0c04770a7f2852ca2a2fc8e1af591b076fa6ec46 (diff)
Fix tests
-rw-r--r--discover/autotests/CMakeLists.txt3
-rw-r--r--discover/autotests/packageArgument.qml2
-rw-r--r--libdiscover/backends/DummyBackend/tests/DummyTest.cpp2
3 files changed, 3 insertions, 4 deletions
diff --git a/discover/autotests/CMakeLists.txt b/discover/autotests/CMakeLists.txt
index 274028c..97877f3 100644
--- a/discover/autotests/CMakeLists.txt
+++ b/discover/autotests/CMakeLists.txt
@@ -11,5 +11,6 @@ if(BUILD_DummyBackend)
add_test(NAME apparg COMMAND Plasma::Discover --test "${CMAKE_CURRENT_SOURCE_DIR}/appstreamUrl.qml" --application "dummy://techie1")
add_test(NAME categoryarg COMMAND Plasma::Discover --test "${CMAKE_CURRENT_SOURCE_DIR}/categoryArg.qml" --category "dummy 2.1")
add_test(NAME wrongInput COMMAND Plasma::Discover --test "${CMAKE_CURRENT_SOURCE_DIR}/wrongInput.qml" "CMakeLists.txt")
- add_test(NAME packageArgument COMMAND Plasma::Discover --test "${CMAKE_CURRENT_SOURCE_DIR}/packageArgument.qml" --local-filename "something")
+ add_test(NAME packageArgument COMMAND Plasma::Discover --test "${CMAKE_CURRENT_SOURCE_DIR}/packageArgument.qml"
+ --local-filename "${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt")
endif()
diff --git a/discover/autotests/packageArgument.qml b/discover/autotests/packageArgument.qml
index 859126b..9b2bf34 100644
--- a/discover/autotests/packageArgument.qml
+++ b/discover/autotests/packageArgument.qml
@@ -7,6 +7,6 @@ DiscoverTest
verify(appRoot.stack.currentItem, "has a page");
while (appRoot.stack.currentItem.title === "Loading...")
waitForRendering();
- compare(appRoot.stack.currentItem.title, "something", "same title");
+ compare(appRoot.stack.currentItem.title, "CMakeLists.txt", "same title");
}
}
diff --git a/libdiscover/backends/DummyBackend/tests/DummyTest.cpp b/libdiscover/backends/DummyBackend/tests/DummyTest.cpp
index de0b0e0..18d3d4f 100644
--- a/libdiscover/backends/DummyBackend/tests/DummyTest.cpp
+++ b/libdiscover/backends/DummyBackend/tests/DummyTest.cpp
@@ -149,10 +149,8 @@ void DummyTest::testFetch()
//fetches updates, adds new things
m_appBackend->messageActions().at(0)->trigger();
- QCOMPARE(m_model->isFetching(), true);
QSignalSpy spy(m_model, SIGNAL(allInitialized()));
QVERIFY(spy.wait(80000));
- QCOMPARE(m_model->isFetching(), false);
auto resources2 = fetchResources(m_appBackend->search({}));
QCOMPARE(m_appBackend->property("startElements").toInt()*4, resources2.count());
}