mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
75b5be8f40
commit
42a85dfa7e
3 changed files with 213 additions and 0 deletions
21
tests/testqPrefLog.h
Normal file
21
tests/testqPrefLog.h
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue