summaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-12-19 15:10:02 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-12-19 15:10:02 +0100
commit2d5f37460b70715c5ffd0fc6b4dc8b0975ed0cc5 (patch)
treeafeb020ad62be464ba633eb31439768d47286529 /components
parent95f60666c715d7f3f2e2078f3f6b0edeb75eb441 (diff)
downloadkube-2d5f37460b70715c5ffd0fc6b4dc8b0975ed0cc5.tar.gz
kube-2d5f37460b70715c5ffd0fc6b4dc8b0975ed0cc5.zip
Basic test harness for views
Diffstat (limited to 'components')
-rw-r--r--components/kube/tests/tst_accountsview.qml37
-rw-r--r--components/kube/tests/tst_composerview.qml37
-rw-r--r--components/kube/tests/tst_mailview.qml37
3 files changed, 111 insertions, 0 deletions
diff --git a/components/kube/tests/tst_accountsview.qml b/components/kube/tests/tst_accountsview.qml
new file mode 100644
index 00000000..428bb4cc
--- /dev/null
+++ b/components/kube/tests/tst_accountsview.qml
@@ -0,0 +1,37 @@
1/*
2 * Copyright 2017 Christian Mollekopf <mollekopf@kolabsys.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Library General Public License as
6 * published by the Free Software Foundation; either version 2, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Library General Public License for more details
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19
20import QtQuick 2.7
21import QtTest 1.0
22import "../qml"
23
24TestCase {
25 id: testCase
26 width: 400
27 height: 400
28 name: "AccountsView"
29
30 AccountsView {
31 id: accountsView
32 }
33
34 function test_start() {
35 verify(accountsView)
36 }
37}
diff --git a/components/kube/tests/tst_composerview.qml b/components/kube/tests/tst_composerview.qml
new file mode 100644
index 00000000..81ad5eaa
--- /dev/null
+++ b/components/kube/tests/tst_composerview.qml
@@ -0,0 +1,37 @@
1/*
2 * Copyright 2017 Christian Mollekopf <mollekopf@kolabsys.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Library General Public License as
6 * published by the Free Software Foundation; either version 2, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Library General Public License for more details
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19
20import QtQuick 2.7
21import QtTest 1.0
22import "../qml"
23
24TestCase {
25 id: testCase
26 width: 400
27 height: 400
28 name: "ComposerView"
29
30 ComposerView {
31 id: composer
32 }
33
34 function test_start() {
35 verify(composer)
36 }
37}
diff --git a/components/kube/tests/tst_mailview.qml b/components/kube/tests/tst_mailview.qml
new file mode 100644
index 00000000..f31d574d
--- /dev/null
+++ b/components/kube/tests/tst_mailview.qml
@@ -0,0 +1,37 @@
1/*
2 * Copyright 2017 Christian Mollekopf <mollekopf@kolabsys.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Library General Public License as
6 * published by the Free Software Foundation; either version 2, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Library General Public License for more details
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19
20import QtQuick 2.7
21import QtTest 1.0
22import "../qml"
23
24TestCase {
25 id: testCase
26 width: 400
27 height: 400
28 name: "MailView"
29
30 MailView {
31 id: mailView
32 }
33
34 function test_start() {
35 verify(mailView)
36 }
37}