diff options
author | jan Iversen <jani@apache.org> | 2018-07-06 15:10:22 +0200 |
---|---|---|
committer | jan Iversen <jani@apache.org> | 2018-07-12 19:01:21 +0200 |
commit | 1ef3f61cc9ce312e6a8649d7946e1b06b4febc9e (patch) | |
tree | bd5731c5e801d80263ac1d5b815c8f98330c1cf1 /tests/testqPrefDisplay.h | |
parent | 8f7f1cacd60f150f5d2520d3c9c47d31322fd4c1 (diff) | |
download | subsurface-1ef3f61cc9ce312e6a8649d7946e1b06b4febc9e.tar.gz |
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>
Diffstat (limited to 'tests/testqPrefDisplay.h')
-rw-r--r-- | tests/testqPrefDisplay.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/testqPrefDisplay.h b/tests/testqPrefDisplay.h index 1885e8686..6af2d2be5 100644 --- a/tests/testqPrefDisplay.h +++ b/tests/testqPrefDisplay.h @@ -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 |