mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
tests: add qPrefDisplay testcases
remove test macro, split in functions and add test cases the existing test macro does not work because sync() does not save these variables to disk (set* does) Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
8f7f1cacd6
commit
1ef3f61cc9
2 changed files with 115 additions and 21 deletions
|
|
@ -2,15 +2,18 @@
|
|||
#ifndef TESTQPREFDISPLAY_H
|
||||
#define TESTQPREFDISPLAY_H
|
||||
|
||||
#include <QTest>
|
||||
#include <functional>
|
||||
#include <QtTest>
|
||||
|
||||
class TestQPrefDisplay : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
private slots:
|
||||
void initTestCase();
|
||||
void test1();
|
||||
void test_struct_get();
|
||||
void test_set_struct();
|
||||
void test_set_load_struct();
|
||||
void test_struct_disk();
|
||||
void test_multiple();
|
||||
};
|
||||
|
||||
#endif // TESTQPREFDISPLAY_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue