summaryrefslogtreecommitdiffstats
path: root/tests/tst_qPrefProxy.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_qPrefProxy.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_qPrefProxy.qml')
-rw-r--r--tests/tst_qPrefProxy.qml45
1 files changed, 18 insertions, 27 deletions
diff --git a/tests/tst_qPrefProxy.qml b/tests/tst_qPrefProxy.qml
index 1cd84ca8f..a51a03881 100644
--- a/tests/tst_qPrefProxy.qml
+++ b/tests/tst_qPrefProxy.qml
@@ -1,42 +1,33 @@
// SPDX-License-Identifier: GPL-2.0
import QtQuick 2.6
import QtTest 1.2
-import org.subsurfacedivelog.mobile 1.0
TestCase {
name: "qPrefProxy"
- SsrfProxyPrefs {
- id: tst
- }
-
- SsrfPrefs {
- id: prefs
- }
-
function test_variables() {
- var x1 = tst.proxy_auth
- tst.proxy_auth = true
- compare(tst.proxy_auth, true)
+ var x1 = PrefProxy.proxy_auth
+ PrefProxy.proxy_auth = true
+ compare(PrefProxy.proxy_auth, true)
- var x2 = tst.proxy_host
- tst.proxy_host = "my host"
- compare(tst.proxy_host, "my host")
+ var x2 = PrefProxy.proxy_host
+ PrefProxy.proxy_host = "my host"
+ compare(PrefProxy.proxy_host, "my host")
- var x3 = tst.proxy_pass
- tst.proxy_pass = "my pass"
- compare(tst.proxy_pass, "my pass")
+ var x3 = PrefProxy.proxy_pass
+ PrefProxy.proxy_pass = "my pass"
+ compare(PrefProxy.proxy_pass, "my pass")
- var x3 = tst.proxy_port
- tst.proxy_port = 544
- compare(tst.proxy_port, 544)
+ var x4 = PrefProxy.proxy_port
+ PrefProxy.proxy_port = 544
+ compare(PrefProxy.proxy_port, 544)
- var x5 = tst.proxy_type
- tst.proxy_type = 3
- compare(tst.proxy_type, 3)
+ var x5 = PrefProxy.proxy_type
+ PrefProxy.proxy_type = 3
+ compare(PrefProxy.proxy_type, 3)
- var x3 = tst.proxy_user
- tst.proxy_user = "my user"
- compare(tst.proxy_user, "my user")
+ var x6 = PrefProxy.proxy_user
+ PrefProxy.proxy_user = "my user"
+ compare(PrefProxy.proxy_user, "my user")
}
}