mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
tests: make qprefdisplay test file
Remove display tests from testpreferences and make a new file Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
928fc1ee79
commit
8f7f1cacd6
5 changed files with 67 additions and 19 deletions
|
@ -4,6 +4,7 @@
|
|||
#include <QtTest>
|
||||
#include <QQmlEngine>
|
||||
#include <QQmlContext>
|
||||
#include <QApplication>
|
||||
|
||||
#include "core/settings/qPref.h"
|
||||
#include "core/qt-gui.h"
|
||||
|
@ -18,8 +19,12 @@ int main(int argc, char **argv)
|
|||
QTEST_ADD_GPU_BLACKLIST_SUPPORT
|
||||
QTEST_SET_MAIN_SOURCE_PATH
|
||||
|
||||
// check that qPref exists
|
||||
new qPref;
|
||||
// check that qPref classes exists
|
||||
qPref::instance();
|
||||
qPrefDisplay::instance();
|
||||
|
||||
// prepare Qt application
|
||||
new QApplication(argc, argv);
|
||||
|
||||
// check that we have a directory
|
||||
if (argc < 2) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue