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:
jan Iversen 2018-07-05 22:34:04 +02:00
parent 928fc1ee79
commit 8f7f1cacd6
5 changed files with 67 additions and 19 deletions

View file

@ -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) {