mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
tests: add qPrefAnimations qml testcases
add test of qml C++ interface Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
33949735f2
commit
f63217495d
2 changed files with 19 additions and 1 deletions
|
@ -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
|
||||
|
|
19
tests/tst_qPrefAnimations.qml
Normal file
19
tests/tst_qPrefAnimations.qml
Normal 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)
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue