diff options
-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) + } + +} |