summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-23 19:22:25 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-01-23 19:22:25 +0100
commit579a4c2cc4a6c4e46171734d9587794c2a733bbe (patch)
treed5e2f3cd32d944395417fbdb830a745056685128 /views
parentd18b8a1ce93b7c8bef378ebf1e9b913f9f4557cf (diff)
downloadkube-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.qml9
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
20import QtQuick 2.7 20import QtQuick 2.7
21import QtTest 1.0 21import QtTest 1.0
22import org.kube.test 1.0
22import "../qml" 23import "../qml"
23 24
24TestCase { 25TestCase {
@@ -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}