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
@ -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…
x
Reference in New Issue
Block a user