summaryrefslogtreecommitdiffstats
path: root/tests/tst_qPrefLocationService.qml
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-09-07 13:53:00 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-11 17:25:00 -0700
commit1ee726597239db4e1fd66b5ad70983a127280414 (patch)
treec2f045b5c3acb385e2bd6d1625924e7e1f02cfce /tests/tst_qPrefLocationService.qml
parent684e334fb6098e604a91d140c1e2ea0883dff081 (diff)
downloadsubsurface-1ee726597239db4e1fd66b5ad70983a127280414.tar.gz
tests: update qml test cases
use new qml registration Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'tests/tst_qPrefLocationService.qml')
-rw-r--r--tests/tst_qPrefLocationService.qml21
1 files changed, 6 insertions, 15 deletions
diff --git a/tests/tst_qPrefLocationService.qml b/tests/tst_qPrefLocationService.qml
index f25be3b99..61cbc9827 100644
--- a/tests/tst_qPrefLocationService.qml
+++ b/tests/tst_qPrefLocationService.qml
@@ -1,26 +1,17 @@
// SPDX-License-Identifier: GPL-2.0
import QtQuick 2.6
import QtTest 1.2
-import org.subsurfacedivelog.mobile 1.0
TestCase {
name: "qPrefLocationService"
- SsrfLocationServicePrefs {
- id: tst
- }
-
- SsrfPrefs {
- id: prefs
- }
-
function test_variables() {
- var x1 = tst.distance_threshold
- tst.distance_threshold = 123
- compare(tst.distance_threshold , 123)
+ var x1 = PrefLocationService.distance_threshold
+ PrefLocationService.distance_threshold = 123
+ compare(PrefLocationService.distance_threshold , 123)
- var x2 = tst.time_threshold
- tst.time_threshold = 12
- compare(tst.time_threshold , 12)
+ var x2 = PrefLocationService.time_threshold
+ PrefLocationService.time_threshold = 12
+ compare(PrefLocationService.time_threshold , 12)
}
}