diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-07-25 17:54:09 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-07-25 17:54:09 +0200 |
commit | 3bc8dd514abd6e737c557f3987315401ebf8d452 (patch) | |
tree | 5daafe27dab735a607e1a2e36f83aa8023a9ab12 /views | |
parent | 5892cf6b29c62cc632e94b22624a0bbbe6c21c54 (diff) | |
download | kube-3bc8dd514abd6e737c557f3987315401ebf8d452.tar.gz kube-3bc8dd514abd6e737c557f3987315401ebf8d452.zip |
Ensure that we shutdown all resources before existing the test.
A lingering resource will also block the test from exiting.
Diffstat (limited to 'views')
-rw-r--r-- | views/accounts/tests/tst_accountsview.qml | 8 | ||||
-rw-r--r-- | views/calendar/tests/tst_calendar.qml | 5 | ||||
-rw-r--r-- | views/composer/tests/tst_composerview.qml | 4 | ||||
-rw-r--r-- | views/conversation/tests/tst_conversationview.qml | 4 | ||||
-rw-r--r-- | views/inboxcrusher/tests/tst_inboxcrusher.qml | 5 | ||||
-rw-r--r-- | views/log/tests/tst_logview.qml | 4 | ||||
-rw-r--r-- | views/people/tests/tst_peopleview.qml | 4 | ||||
-rw-r--r-- | views/search/tests/tst_searchview.qml | 5 |
8 files changed, 11 insertions, 28 deletions
diff --git a/views/accounts/tests/tst_accountsview.qml b/views/accounts/tests/tst_accountsview.qml index 8d7bc29d..468a0716 100644 --- a/views/accounts/tests/tst_accountsview.qml +++ b/views/accounts/tests/tst_accountsview.qml | |||
@@ -22,17 +22,11 @@ import QtTest 1.0 | |||
22 | import org.kube.test 1.0 | 22 | import org.kube.test 1.0 |
23 | import "../qml" | 23 | import "../qml" |
24 | 24 | ||
25 | TestCase { | 25 | ViewTestCase { |
26 | id: testCase | 26 | id: testCase |
27 | width: 400 | ||
28 | height: 400 | ||
29 | name: "AccountsView" | 27 | name: "AccountsView" |
30 | when: windowShown | 28 | when: windowShown |
31 | 29 | ||
32 | function cleanup() { | ||
33 | TestStore.shutdownResources(); | ||
34 | } | ||
35 | |||
36 | function visitChildren(item) { | 30 | function visitChildren(item) { |
37 | console.warn(item) | 31 | console.warn(item) |
38 | for (var i = 0; i < item.children.length; i++) { | 32 | for (var i = 0; i < item.children.length; i++) { |
diff --git a/views/calendar/tests/tst_calendar.qml b/views/calendar/tests/tst_calendar.qml index 46f7dba2..20b78ba7 100644 --- a/views/calendar/tests/tst_calendar.qml +++ b/views/calendar/tests/tst_calendar.qml | |||
@@ -19,11 +19,10 @@ | |||
19 | 19 | ||
20 | import QtQuick 2.7 | 20 | import QtQuick 2.7 |
21 | import QtTest 1.0 | 21 | import QtTest 1.0 |
22 | import org.kube.test 1.0 | ||
22 | import "../qml" | 23 | import "../qml" |
23 | 24 | ||
24 | TestCase { | 25 | ViewTestCase { |
25 | width: 400 | ||
26 | height: 400 | ||
27 | name: "Todo" | 26 | name: "Todo" |
28 | 27 | ||
29 | View { | 28 | View { |
diff --git a/views/composer/tests/tst_composerview.qml b/views/composer/tests/tst_composerview.qml index 61668ecb..d3b6a420 100644 --- a/views/composer/tests/tst_composerview.qml +++ b/views/composer/tests/tst_composerview.qml | |||
@@ -23,10 +23,8 @@ import org.kube.framework 1.0 as Kube | |||
23 | import org.kube.test 1.0 | 23 | import org.kube.test 1.0 |
24 | import "../qml" | 24 | import "../qml" |
25 | 25 | ||
26 | TestCase { | 26 | ViewTestCase { |
27 | id: testCase | 27 | id: testCase |
28 | width: 400 | ||
29 | height: 400 | ||
30 | name: "ComposerView" | 28 | name: "ComposerView" |
31 | when: windowShown | 29 | when: windowShown |
32 | 30 | ||
diff --git a/views/conversation/tests/tst_conversationview.qml b/views/conversation/tests/tst_conversationview.qml index 186c2634..b85f4cb6 100644 --- a/views/conversation/tests/tst_conversationview.qml +++ b/views/conversation/tests/tst_conversationview.qml | |||
@@ -23,10 +23,8 @@ import "../qml" | |||
23 | import org.kube.framework 1.0 as Kube | 23 | import org.kube.framework 1.0 as Kube |
24 | import org.kube.test 1.0 | 24 | import org.kube.test 1.0 |
25 | 25 | ||
26 | TestCase { | 26 | ViewTestCase { |
27 | id: testCase | 27 | id: testCase |
28 | width: 400 | ||
29 | height: 400 | ||
30 | name: "MailView" | 28 | name: "MailView" |
31 | 29 | ||
32 | Component { | 30 | Component { |
diff --git a/views/inboxcrusher/tests/tst_inboxcrusher.qml b/views/inboxcrusher/tests/tst_inboxcrusher.qml index dba4603a..3e756569 100644 --- a/views/inboxcrusher/tests/tst_inboxcrusher.qml +++ b/views/inboxcrusher/tests/tst_inboxcrusher.qml | |||
@@ -18,10 +18,10 @@ | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | import QtQuick 2.7 | 20 | import QtQuick 2.7 |
21 | import QtTest 1.0 | 21 | import org.kube.test 1.0 |
22 | import "../qml" | 22 | import "../qml" |
23 | 23 | ||
24 | TestCase { | 24 | ViewTestCase { |
25 | width: 400 | 25 | width: 400 |
26 | height: 400 | 26 | height: 400 |
27 | name: "InboxCrusher" | 27 | name: "InboxCrusher" |
@@ -33,4 +33,5 @@ TestCase { | |||
33 | function test_start() { | 33 | function test_start() { |
34 | verify(view) | 34 | verify(view) |
35 | } | 35 | } |
36 | |||
36 | } | 37 | } |
diff --git a/views/log/tests/tst_logview.qml b/views/log/tests/tst_logview.qml index 8f733b6c..2479172d 100644 --- a/views/log/tests/tst_logview.qml +++ b/views/log/tests/tst_logview.qml | |||
@@ -23,10 +23,8 @@ import org.kube.framework 1.0 as Kube | |||
23 | import org.kube.test 1.0 | 23 | import org.kube.test 1.0 |
24 | import "../qml" | 24 | import "../qml" |
25 | 25 | ||
26 | TestCase { | 26 | ViewTestCase { |
27 | id: logviewTestcase | 27 | id: logviewTestcase |
28 | width: 400 | ||
29 | height: 400 | ||
30 | name: "LogView" | 28 | name: "LogView" |
31 | 29 | ||
32 | View { | 30 | View { |
diff --git a/views/people/tests/tst_peopleview.qml b/views/people/tests/tst_peopleview.qml index d2764c31..4b940c6d 100644 --- a/views/people/tests/tst_peopleview.qml +++ b/views/people/tests/tst_peopleview.qml | |||
@@ -22,10 +22,8 @@ import QtTest 1.0 | |||
22 | import org.kube.test 1.0 | 22 | import org.kube.test 1.0 |
23 | import "../qml" | 23 | import "../qml" |
24 | 24 | ||
25 | TestCase { | 25 | ViewTestCase { |
26 | id: testCase | 26 | id: testCase |
27 | width: 400 | ||
28 | height: 400 | ||
29 | name: "PeopleView" | 27 | name: "PeopleView" |
30 | 28 | ||
31 | View { | 29 | View { |
diff --git a/views/search/tests/tst_searchview.qml b/views/search/tests/tst_searchview.qml index 3aeae109..ead62a9d 100644 --- a/views/search/tests/tst_searchview.qml +++ b/views/search/tests/tst_searchview.qml | |||
@@ -20,13 +20,10 @@ | |||
20 | import QtQuick 2.7 | 20 | import QtQuick 2.7 |
21 | import QtTest 1.0 | 21 | import QtTest 1.0 |
22 | import "../qml" | 22 | import "../qml" |
23 | import org.kube.framework 1.0 as Kube | ||
24 | import org.kube.test 1.0 | 23 | import org.kube.test 1.0 |
25 | 24 | ||
26 | TestCase { | 25 | ViewTestCase { |
27 | id: testCase | 26 | id: testCase |
28 | width: 400 | ||
29 | height: 400 | ||
30 | name: "SearchView" | 27 | name: "SearchView" |
31 | 28 | ||
32 | Component { | 29 | Component { |