diff options
author | jan Iversen <jani@apache.org> | 2018-09-07 13:53:00 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-11 17:25:00 -0700 |
commit | 1ee726597239db4e1fd66b5ad70983a127280414 (patch) | |
tree | c2f045b5c3acb385e2bd6d1625924e7e1f02cfce /tests/tst_qPrefUpdateManager.qml | |
parent | 684e334fb6098e604a91d140c1e2ea0883dff081 (diff) | |
download | subsurface-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_qPrefUpdateManager.qml')
-rw-r--r-- | tests/tst_qPrefUpdateManager.qml | 39 |
1 files changed, 15 insertions, 24 deletions
diff --git a/tests/tst_qPrefUpdateManager.qml b/tests/tst_qPrefUpdateManager.qml index c1b0712a8..4772ada62 100644 --- a/tests/tst_qPrefUpdateManager.qml +++ b/tests/tst_qPrefUpdateManager.qml @@ -1,39 +1,30 @@ // SPDX-License-Identifier: GPL-2.0 import QtQuick 2.6 import QtTest 1.2 -import org.subsurfacedivelog.mobile 1.0 TestCase { name: "qPrefUpdateManager" - SsrfUpdateManagerPrefs { - id: tst - } - - SsrfPrefs { - id: prefs - } - function test_variables() { - var x1 = tst.dont_check_for_updates - tst.dont_check_for_updates = true; - compare(tst.dont_check_for_updates, true) + var x1 = PrefUpdateManager.dont_check_for_updates + PrefUpdateManager.dont_check_for_updates = true; + compare(PrefUpdateManager.dont_check_for_updates, true) - var x2 = tst.dont_check_exists - tst.dont_check_exists = true - compare(tst.dont_check_exists, true) + var x2 = PrefUpdateManager.dont_check_exists + PrefUpdateManager.dont_check_exists = true + compare(PrefUpdateManager.dont_check_exists, true) - var x3 = tst.last_version_used - tst.last_version_used = "jan again" - compare(tst.last_version_used, "jan again") + var x3 = PrefUpdateManager.last_version_used + PrefUpdateManager.last_version_used = "jan again" + compare(PrefUpdateManager.last_version_used, "jan again") - var x4 = tst.next_check + var x4 = PrefUpdateManager.next_check var x4_date = Date.fromLocaleString(Qt.locale(), "01-01-2001", "dd-MM-yyyy") - tst.next_check = x4_date -//TBD compare(tst.next_check, x4_date) + PrefUpdateManager.next_check = x4_date +//TBD compare(PrefUpdateManager.next_check, x4_date) - var x5 = tst.uuidString - tst.uuidString = "jan again" - compare(tst.uuidString, "jan again") + var x5 = PrefUpdateManager.uuidString + PrefUpdateManager.uuidString = "jan again" + compare(PrefUpdateManager.uuidString, "jan again") } } |