diff options
Diffstat (limited to 'components')
-rw-r--r-- | components/kube/tests/tst_accountsview.qml | 37 | ||||
-rw-r--r-- | components/kube/tests/tst_composerview.qml | 37 | ||||
-rw-r--r-- | components/kube/tests/tst_mailview.qml | 37 |
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 | |||
20 | import QtQuick 2.7 | ||
21 | import QtTest 1.0 | ||
22 | import "../qml" | ||
23 | |||
24 | TestCase { | ||
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 | |||
20 | import QtQuick 2.7 | ||
21 | import QtTest 1.0 | ||
22 | import "../qml" | ||
23 | |||
24 | TestCase { | ||
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 | |||
20 | import QtQuick 2.7 | ||
21 | import QtTest 1.0 | ||
22 | import "../qml" | ||
23 | |||
24 | TestCase { | ||
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 | } | ||