From f63217495d27c77b2f7f866caec568a19ee9543d Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Thu, 12 Jul 2018 12:44:53 +0200 Subject: tests: add qPrefAnimations qml testcases add test of qml C++ interface Signed-off-by: Jan Iversen --- tests/testqml.cpp | 1 - tests/tst_qPrefAnimations.qml | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 tests/tst_qPrefAnimations.qml (limited to 'tests') diff --git a/tests/testqml.cpp b/tests/testqml.cpp index e77d2c84f..0b75d8d48 100644 --- a/tests/testqml.cpp +++ b/tests/testqml.cpp @@ -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 diff --git a/tests/tst_qPrefAnimations.qml b/tests/tst_qPrefAnimations.qml new file mode 100644 index 000000000..01e59fa42 --- /dev/null +++ b/tests/tst_qPrefAnimations.qml @@ -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) + } + +} -- cgit v1.2.3-70-g09d2