summaryrefslogtreecommitdiffstats
path: root/tests/tst_qPrefCloudStorage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tst_qPrefCloudStorage.qml')
-rw-r--r--tests/tst_qPrefCloudStorage.qml73
1 files changed, 33 insertions, 40 deletions
diff --git a/tests/tst_qPrefCloudStorage.qml b/tests/tst_qPrefCloudStorage.qml
index a48fa672d..8d58c7277 100644
--- a/tests/tst_qPrefCloudStorage.qml
+++ b/tests/tst_qPrefCloudStorage.qml
@@ -6,56 +6,49 @@ import org.subsurfacedivelog.mobile 1.0
TestCase {
name: "qPrefCloudStorage"
- SsrfCloudStoragePrefs {
- id: tst
- }
-
- SsrfPrefs {
- id: prefs
- }
-
function test_variables() {
- var x1 = tst.cloud_base_url
- tst.cloud_base_url = "my url"
- compare(tst.cloud_base_url, "my url")
+ var x1 = PrefCloudStorage.cloud_base_url
+ PrefCloudStorage.cloud_base_url = "my url"
+ compare(PrefCloudStorage.cloud_base_url, "my url")
- var x2 = tst.cloud_git_url
- compare(tst.cloud_git_url, "my url/git")
+ var x2 = PrefCloudStorage.cloud_git_url
+ compare(PrefCloudStorage.cloud_git_url, "my url/git")
- var x3 = tst.cloud_storage_email
- tst.cloud_storage_email = "my email"
- compare(tst.cloud_storage_email, "my email")
+ var x3 = PrefCloudStorage.cloud_storage_email
+ PrefCloudStorage.cloud_storage_email = "my email"
+ compare(PrefCloudStorage.cloud_storage_email, "my email")
- var x4 = tst.cloud_storage_email_encoded
- tst.cloud_storage_email_encoded= "my email enc"
- compare(tst.cloud_storage_email_encoded, "my email enc")
+ var x4 = PrefCloudStorage.cloud_storage_email_encoded
+ PrefCloudStorage.cloud_storage_email_encoded= "my email enc"
+ compare(PrefCloudStorage.cloud_storage_email_encoded, "my email enc")
- var x6 = tst.cloud_storage_password
- tst.cloud_storage_password = "my url"
- compare(tst.cloud_storage_password, "my url")
+ var x5 = PrefCloudStorage.cloud_storage_password
+ PrefCloudStorage.cloud_storage_password = "my url"
+ compare(PrefCloudStorage.cloud_storage_password, "my url")
- var x7 = tst.cloud_storage_pin
- tst.cloud_storage_pin= "my pin"
- compare(tst.cloud_storage_pin, "my pin")
+ var x6 = PrefCloudStorage.cloud_storage_pin
+ PrefCloudStorage.cloud_storage_pin= "my pin"
+ compare(PrefCloudStorage.cloud_storage_pin, "my pin")
- var x8 = tst.cloud_timeout
- tst.cloud_timeout = 137
- compare(tst.cloud_timeout, 137)
+ var x7 = PrefCloudStorage.cloud_timeout
+ PrefCloudStorage.cloud_timeout = 137
+ compare(PrefCloudStorage.cloud_timeout, 137)
- var x9 = tst.cloud_verification_status
- tst.cloud_verification_status = tst.CS_VERIFIED
- compare(tst.cloud_verification_status, tst.CS_VERIFIED)
+ var x8 = PrefCloudStorage.cloud_verification_status
+ PrefCloudStorage.cloud_verification_status = 1
+ PrefCloudStorage.cloud_verification_status = CloudStatus.CS_VERIFIED
+ compare(PrefCloudStorage.cloud_verification_status, CloudStatus.CS_VERIFIED)
- var x11 = tst.save_password_local
- tst.save_password_local = true
- compare(tst.save_password_local, true)
+ var x9 = PrefCloudStorage.save_password_local
+ PrefCloudStorage.save_password_local = true
+ compare(PrefCloudStorage.save_password_local, true)
- var x12 = tst.save_userid_local
- tst.save_userid_local = true
- compare(tst.save_userid_local, true)
+ var x10 = PrefCloudStorage.save_userid_local
+ PrefCloudStorage.save_userid_local = true
+ compare(PrefCloudStorage.save_userid_local, true)
- var x13 = tst.userid
- tst.userid = "my user"
- compare(tst.userid, "my user")
+ var x11 = PrefCloudStorage.userid
+ PrefCloudStorage.userid = "my user"
+ compare(PrefCloudStorage.userid, "my user")
}
}