summaryrefslogtreecommitdiffstats
path: root/tests/testqPrefLog.h
diff options
context:
space:
mode:
authorGravatar willemferguson <willemferguson@zoology.up.ac.za>2019-12-11 19:50:17 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-25 02:57:42 +0900
commit42a85dfa7e3052d50a831bb5700a26ad7df9dc0a (patch)
tree70b1b5e47c0449d2d49ccd1f65ac6f0ebb377e40 /tests/testqPrefLog.h
parent75b5be8f40df3d3b7d354eead0439b53b2490024 (diff)
downloadsubsurface-42a85dfa7e3052d50a831bb5700a26ad7df9dc0a.tar.gz
Preferences: add some tests
Write a test program to test the log tab in the preferences main menu I am a bit skeptical about the accuracy of the last section that delas with testing signals. Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests/testqPrefLog.h')
-rw-r--r--tests/testqPrefLog.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/testqPrefLog.h b/tests/testqPrefLog.h
new file mode 100644
index 000000000..f108fd823
--- /dev/null
+++ b/tests/testqPrefLog.h
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: GPL-2.0
+#ifndef TESTQPREFLOG_H
+#define TESTQPREFLOG_H
+
+#include <QObject>
+
+class TestQPrefLog : public QObject {
+ Q_OBJECT
+
+private slots:
+ void initTestCase();
+ void test_struct_get();
+ void test_set_struct();
+ void test_set_load_struct();
+ void test_struct_disk();
+ void test_multiple();
+ void test_oldPreferences();
+ void test_signals();
+};
+
+#endif // TESTQPREFGENERAL_H