diff options
Diffstat (limited to 'tests/tst_qPrefLocationService.qml')
-rw-r--r-- | tests/tst_qPrefLocationService.qml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/tst_qPrefLocationService.qml b/tests/tst_qPrefLocationService.qml index 61cbc9827..9da5fcfb3 100644 --- a/tests/tst_qPrefLocationService.qml +++ b/tests/tst_qPrefLocationService.qml @@ -14,4 +14,25 @@ TestCase { PrefLocationService.time_threshold = 12 compare(PrefLocationService.time_threshold , 12) } + + Item { + id: spyCatcher + + property bool spy1 : false + property bool spy2 : false + + Connections { + target: PrefLocationService + onDistance_thresholdChanged: {spyCatcher.spy1 = true } + onTime_thresholdChanged: {spyCatcher.spy2 = true } + } + } + + function test_signals() { + PrefLocationService.distance_threshold = -123 + PrefLocationService.time_threshold = -12 + + compare(spyCatcher.spy1, true) + compare(spyCatcher.spy2, true) + } } |