From 579a4c2cc4a6c4e46171734d9587794c2a733bbe Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 23 Jan 2018 19:22:25 +0100 Subject: The accounts view needs a window. Otherwise mapToGlobal crashes. --- views/accounts/tests/tst_accountsview.qml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'views') 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 @@ import QtQuick 2.7 import QtTest 1.0 +import org.kube.test 1.0 import "../qml" TestCase { @@ -26,12 +27,16 @@ TestCase { width: 400 height: 400 name: "AccountsView" + when: windowShown - View { - id: accountsView + Component { + id: accountsComponent + View { + } } function test_start() { + var accountsView = createTemporaryObject(accountsComponent, testCase, {}) verify(accountsView) } } -- cgit v1.2.3