From 3bc8dd514abd6e737c557f3987315401ebf8d452 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Wed, 25 Jul 2018 17:54:09 +0200 Subject: Ensure that we shutdown all resources before existing the test. A lingering resource will also block the test from exiting. --- tests/qml/ViewTestCase.qml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tests/qml/ViewTestCase.qml (limited to 'tests/qml') diff --git a/tests/qml/ViewTestCase.qml b/tests/qml/ViewTestCase.qml new file mode 100644 index 00000000..f2d08bb1 --- /dev/null +++ b/tests/qml/ViewTestCase.qml @@ -0,0 +1,30 @@ +/* + * Copyright 2017 Christian Mollekopf + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Library General Public License for more details + * + * You should have received a copy of the GNU Library General Public + * License along with this program; if not, write to the + * Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +import QtTest 1.0 +import org.kube.test 1.0 + +TestCase { + width: 400 + height: 400 + + function cleanup() { + TestStore.shutdownResources(); + } +} -- cgit v1.2.3