diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-23 19:22:25 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-01-23 19:22:25 +0100 |
commit | 579a4c2cc4a6c4e46171734d9587794c2a733bbe (patch) | |
tree | d5e2f3cd32d944395417fbdb830a745056685128 /views | |
parent | d18b8a1ce93b7c8bef378ebf1e9b913f9f4557cf (diff) | |
download | kube-579a4c2cc4a6c4e46171734d9587794c2a733bbe.tar.gz kube-579a4c2cc4a6c4e46171734d9587794c2a733bbe.zip |
The accounts view needs a window.
Otherwise mapToGlobal crashes.
Diffstat (limited to 'views')
-rw-r--r-- | views/accounts/tests/tst_accountsview.qml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/views/accounts/tests/tst_accountsview.qml b/views/accounts/tests/tst_accountsview.qml index 096ca9eb..c278136f 100644 --- a/views/accounts/tests/tst_accountsview.qml +++ b/views/accounts/tests/tst_accountsview.qml | |||
@@ -19,6 +19,7 @@ | |||
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 | TestCase { |
@@ -26,12 +27,16 @@ TestCase { | |||
26 | width: 400 | 27 | width: 400 |
27 | height: 400 | 28 | height: 400 |
28 | name: "AccountsView" | 29 | name: "AccountsView" |
30 | when: windowShown | ||
29 | 31 | ||
30 | View { | 32 | Component { |
31 | id: accountsView | 33 | id: accountsComponent |
34 | View { | ||
35 | } | ||
32 | } | 36 | } |
33 | 37 | ||
34 | function test_start() { | 38 | function test_start() { |
39 | var accountsView = createTemporaryObject(accountsComponent, testCase, {}) | ||
35 | verify(accountsView) | 40 | verify(accountsView) |
36 | } | 41 | } |
37 | } | 42 | } |