summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <[email protected]>2016-11-16 18:44:52 +0100
committerAleix Pol <[email protected]>2016-11-16 18:44:52 +0100
commit0cf554cd5c7b70af7ccdd4c6a853d51fed81dc00 (patch)
tree20997b7f124bb955bad7cb4f06c6fb0a438af76a
parent22dd7966a6b0325712216d7ec38d2ab4acdae0a5 (diff)
Add missing tests
-rw-r--r--discover/autotests/packageArgument.qml12
-rw-r--r--discover/autotests/wrongInput.qml8
2 files changed, 20 insertions, 0 deletions
diff --git a/discover/autotests/packageArgument.qml b/discover/autotests/packageArgument.qml
new file mode 100644
index 0000000..859126b
--- /dev/null
+++ b/discover/autotests/packageArgument.qml
@@ -0,0 +1,12 @@
+import QtQuick 2.0
+import QtTest 1.1
+
+DiscoverTest
+{
+ function test_open() {
+ verify(appRoot.stack.currentItem, "has a page");
+ while (appRoot.stack.currentItem.title === "Loading...")
+ waitForRendering();
+ compare(appRoot.stack.currentItem.title, "something", "same title");
+ }
+}
diff --git a/discover/autotests/wrongInput.qml b/discover/autotests/wrongInput.qml
new file mode 100644
index 0000000..2b5c55a
--- /dev/null
+++ b/discover/autotests/wrongInput.qml
@@ -0,0 +1,8 @@
+import QtQuick 2.0
+import QtTest 1.1
+
+DiscoverTest
+{
+ function test_open() {
+ }
+}