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/accounts/tests/tst_accountsview.qml | |
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/accounts/tests/tst_accountsview.qml')
-rw-r--r-- | views/accounts/tests/tst_accountsview.qml | 8 |
1 files changed, 1 insertions, 7 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++) { |