summaryrefslogtreecommitdiffstats
path: root/tests/tst_qPrefUnits.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_qPrefUnits.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_qPrefUnits.qml')
-rw-r--r--tests/tst_qPrefUnits.qml69
1 files changed, 30 insertions, 39 deletions
diff --git a/tests/tst_qPrefUnits.qml b/tests/tst_qPrefUnits.qml
index fe74ee965..22ae14a19 100644
--- a/tests/tst_qPrefUnits.qml
+++ b/tests/tst_qPrefUnits.qml
@@ -1,58 +1,49 @@
// SPDX-License-Identifier: GPL-2.0
import QtQuick 2.6
import QtTest 1.2
-import org.subsurfacedivelog.mobile 1.0
TestCase {
name: "qPrefUnits"
- SsrfUnitPrefs {
- id: tst
- }
-
- SsrfPrefs {
- id: prefs
- }
-
function test_variables() {
- var x1 = tst.coordinates_traditional
- tst.coordinates_traditional = true
- compare(tst.coordinates_traditional, true)
+ var x1 = PrefUnits.coordinates_traditional
+ PrefUnits.coordinates_traditional = true
+ compare(PrefUnits.coordinates_traditional, true)
-//TBD var x2 = tst.duration_units
-//TBD tst.duration_units = ??
-//TBD compare(tst.duration_units, ??)
+//TBD var x2 = PrefUnits.duration_units
+//TBD PrefUnits.duration_units = ??
+//TBD compare(PrefUnits.duration_units, ??)
-//TBD var x3 = tst.length
-//TBD tst.=length = ??
-//TBD compare(tst.length, ??)
+//TBD var x3 = PrefUnits.length
+//TBD PrefUnits.=length = ??
+//TBD compare(PrefUnits.length, ??)
-//TBD var x4 = tst.pressure
-//TBD tst.pressure = ??
-//TBD compare(tst.pressure, ??)
+//TBD var x4 = PrefUnits.pressure
+//TBD PrefUnits.pressure = ??
+//TBD compare(PrefUnits.pressure, ??)
- var x5 = tst.show_units_table
- tst.show_units_table = true
- compare(tst.show_units_table, true)
+ var x5 = PrefUnits.show_units_table
+ PrefUnits.show_units_table = true
+ compare(PrefUnits.show_units_table, true)
-//TBD var x6 = tst.temperature
-//TBD tst.temperature = ??
-//TBD compare(tst.temperature, ??)
+//TBD var x6 = PrefUnits.temperature
+//TBD PrefUnits.temperature = ??
+//TBD compare(PrefUnits.temperature, ??)
- var x7 = tst.unit_system
- tst.unit_system = "metric"
- compare(tst.unit_system, "metric")
+ var x7 = PrefUnits.unit_system
+ PrefUnits.unit_system = "metric"
+ compare(PrefUnits.unit_system, "metric")
-//TBD var x8 = tst.vertical_speed_time
-//TBD tst.vertical_speed_time = ??
-//TBD compare(tst.vertical_speed_time, ??)
+//TBD var x8 = PrefUnits.vertical_speed_time
+//TBD PrefUnits.vertical_speed_time = ??
+//TBD compare(PrefUnits.vertical_speed_time, ??)
-//TBD var x9 = tst.volume
-//TBD tst.volume = ??
-//TBD compare(tst.volume, ??)
+//TBD var x9 = PrefUnits.volume
+//TBD PrefUnits.volume = ??
+//TBD compare(PrefUnits.volume, ??)
-//TBD var x10 = tst.weight
-//TBD tst.weight = ??
-//TBD compare(tst.weight, ??)
+//TBD var x10 = PrefUnits.weight
+//TBD PrefUnits.weight = ??
+//TBD compare(PrefUnits.weight, ??)
}
}