tests: add qPrefAnimations qml testcases

add test of qml C++ interface

Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
jan Iversen 2018-07-12 12:44:53 +02:00
parent 33949735f2
commit f63217495d
2 changed files with 19 additions and 1 deletions

View file

@ -8,7 +8,6 @@
#include "core/settings/qPref.h"
#include "core/qt-gui.h"
#include "core/settings/qPrefDisplay.h"
// this is the content of QUICK_TEST_MAIN amended with
// registration of ssrf classes

View file

@ -0,0 +1,19 @@
// SPDX-License-Identifier: GPL-2.0
import QtQuick 2.6
import QtTest 1.2
import org.subsurfacedivelog.mobile 1.0
TestCase {
name: "qPrefAnimations"
SsrfAnimationsPrefs {
id: tst
}
function test_variables() {
var x1 = tst.animation_speed;
tst.animation_speed = 37
compare(tst.animation_speed, 37)
}
}