summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
-rw-r--r--tests/kubetestrunner.cpp1
4 files changed, 112 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}
diff --git a/tests/kubetestrunner.cpp b/tests/kubetestrunner.cpp
index bb8fb242..b6c88341 100644
--- a/tests/kubetestrunner.cpp
+++ b/tests/kubetestrunner.cpp
@@ -3,6 +3,7 @@
3 3
4int main(int argc, char **argv) 4int main(int argc, char **argv)
5{ 5{
6 QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
6 Sink::Test::initTest(); 7 Sink::Test::initTest();
7 QTEST_ADD_GPU_BLACKLIST_SUPPORT 8 QTEST_ADD_GPU_BLACKLIST_SUPPORT
8 QTEST_SET_MAIN_SOURCE_PATH 9 QTEST_SET_MAIN_SOURCE_PATH