diff options
author | jan Iversen <jani@apache.org> | 2018-07-12 12:44:53 +0200 |
---|---|---|
committer | jan Iversen <jani@apache.org> | 2018-07-12 22:36:04 +0200 |
commit | f63217495d27c77b2f7f866caec568a19ee9543d (patch) | |
tree | 20bbaa19029aa5e9ffd3344b7ebe27267c8878da /tests | |
parent | 33949735f2965a2249b2915b7c38e30202520bf4 (diff) | |
download | subsurface-f63217495d27c77b2f7f866caec568a19ee9543d.tar.gz |
tests: add qPrefAnimations qml testcases
add test of qml C++ interface
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testqml.cpp | 1 | ||||
-rw-r--r-- | tests/tst_qPrefAnimations.qml | 19 |
2 files changed, 19 insertions, 1 deletions
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) + } + +} |