summaryrefslogtreecommitdiffstats
path: root/tests/tst_qPrefTechnicalDetails.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_qPrefTechnicalDetails.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_qPrefTechnicalDetails.qml')
-rw-r--r--tests/tst_qPrefTechnicalDetails.qml171
1 files changed, 81 insertions, 90 deletions
diff --git a/tests/tst_qPrefTechnicalDetails.qml b/tests/tst_qPrefTechnicalDetails.qml
index 2b0bdd5ba..8dfd1719b 100644
--- a/tests/tst_qPrefTechnicalDetails.qml
+++ b/tests/tst_qPrefTechnicalDetails.qml
@@ -1,126 +1,117 @@
// SPDX-License-Identifier: GPL-2.0
import QtQuick 2.6
import QtTest 1.2
-import org.subsurfacedivelog.mobile 1.0
TestCase {
name: "qPrefTechnicalDetails"
- SsrfTechnicalDetailsPrefs {
- id: tst
- }
-
- SsrfPrefs {
- id: prefs
- }
-
function test_variables() {
- var x01 = tst.calcalltissues
- tst.calcalltissues = true
- compare(tst.calcalltissues, true)
+ var x01 = PrefTechnicalDetails.calcalltissues
+ PrefTechnicalDetails.calcalltissues = true
+ compare(PrefTechnicalDetails.calcalltissues, true)
- var x02 = tst.calcceiling
- tst.calcceiling = true
- compare(tst.calcceiling, true)
+ var x02 = PrefTechnicalDetails.calcceiling
+ PrefTechnicalDetails.calcceiling = true
+ compare(PrefTechnicalDetails.calcceiling, true)
- var x03 = tst.calcceiling3m
- tst.calcceiling3m = true
- compare(tst.calcceiling3m, true)
+ var x03 = PrefTechnicalDetails.calcceiling3m
+ PrefTechnicalDetails.calcceiling3m = true
+ compare(PrefTechnicalDetails.calcceiling3m, true)
- var x04 = tst.calcndltts
- tst.calcndltts = true
- compare(tst.calcndltts, true)
+ var x04 = PrefTechnicalDetails.calcndltts
+ PrefTechnicalDetails.calcndltts = true
+ compare(PrefTechnicalDetails.calcndltts, true)
- var x05 = tst.dcceiling
- tst.dcceiling = true
- compare(tst.dcceiling, true)
+ var x05 = PrefTechnicalDetails.dcceiling
+ PrefTechnicalDetails.dcceiling = true
+ compare(PrefTechnicalDetails.dcceiling, true)
-//TBD var x06 = tst.display_deco_mode
-//TBD tst.display_deco_mode = BUEHLMANN
-//TBD compare(tst.display_deco_mode, BUEHLMANN)
+//TBD var x06 = PrefTechnicalDetails.display_deco_mode
+//TBD PrefTechnicalDetails.display_deco_mode = BUEHLMANN
+//TBD compare(PrefTechnicalDetails.display_deco_mode, BUEHLMANN)
- var x07 = tst.display_unused_tanks
- tst.display_unused_tanks = true
- compare(tst.display_unused_tanks, true)
+ var x07 = PrefTechnicalDetails.display_unused_tanks
+ PrefTechnicalDetails.display_unused_tanks = true
+ compare(PrefTechnicalDetails.display_unused_tanks, true)
- var x08 = tst.ead
- tst.ead = true
- compare(tst.ead, true)
+ var x08 = PrefTechnicalDetails.ead
+ PrefTechnicalDetails.ead = true
+ compare(PrefTechnicalDetails.ead, true)
- var x09 = tst.gfhigh
- tst.gfhigh = 27
- compare(tst.gfhigh, 27)
+ var x09 = PrefTechnicalDetails.gfhigh
+ PrefTechnicalDetails.gfhigh = 27
+ compare(PrefTechnicalDetails.gfhigh, 27)
- var x10 = tst.gflow
- tst.gflow = 25
- compare(tst.gflow, 25)
+ var x10 = PrefTechnicalDetails.gflow
+ PrefTechnicalDetails.gflow = 25
+ compare(PrefTechnicalDetails.gflow, 25)
- var x11 = tst.gf_low_at_maxdepth
- tst.gf_low_at_maxdepth = true
- compare(tst.gf_low_at_maxdepth, true)
+ var x11 = PrefTechnicalDetails.gf_low_at_maxdepth
+ PrefTechnicalDetails.gf_low_at_maxdepth = true
+ compare(PrefTechnicalDetails.gf_low_at_maxdepth, true)
- var x12 = tst.hrgraph
- tst.hrgraph = true
- compare(tst.hrgraph, true)
+ var x12 = PrefTechnicalDetails.hrgraph
+ PrefTechnicalDetails.hrgraph = true
+ compare(PrefTechnicalDetails.hrgraph, true)
- var x13 = tst.mod
- tst.mod = true
- compare(tst.mod, true)
+ var x13 = PrefTechnicalDetails.mod
+ PrefTechnicalDetails.mod = true
+ compare(PrefTechnicalDetails.mod, true)
- var x14 = tst.modpO2 = 1.02;
- tst.modpO2 = 1.02
- compare(tst.modpO2, 1.02)
+ var x14 = PrefTechnicalDetails.modpO2 = 1.02;
+ PrefTechnicalDetails.modpO2 = 1.02
+ compare(PrefTechnicalDetails.modpO2, 1.02)
- var x15 = tst.percentagegraph
- tst.percentagegraph = true
- compare(tst.percentagegraph, true)
+ var x15 = PrefTechnicalDetails.percentagegraph
+ PrefTechnicalDetails.percentagegraph = true
+ compare(PrefTechnicalDetails.percentagegraph, true)
- var x16 = tst.redceiling
- tst.redceiling = true
- compare(tst.redceiling, true)
+ var x16 = PrefTechnicalDetails.redceiling
+ PrefTechnicalDetails.redceiling = true
+ compare(PrefTechnicalDetails.redceiling, true)
- var x17 = tst.rulergraph
- tst.rulergraph = true
- compare(tst.rulergraph, true)
+ var x17 = PrefTechnicalDetails.rulergraph
+ PrefTechnicalDetails.rulergraph = true
+ compare(PrefTechnicalDetails.rulergraph, true)
- var x18 = tst.show_average_depth
- tst.show_average_depth = true
- compare(tst.show_average_depth, true)
+ var x18 = PrefTechnicalDetails.show_average_depth
+ PrefTechnicalDetails.show_average_depth = true
+ compare(PrefTechnicalDetails.show_average_depth, true)
- var x19 = tst.show_ccr_sensors
- tst.show_ccr_sensors = true
- compare(tst.show_ccr_sensors, true)
+ var x19 = PrefTechnicalDetails.show_ccr_sensors
+ PrefTechnicalDetails.show_ccr_sensors = true
+ compare(PrefTechnicalDetails.show_ccr_sensors, true)
- var x20 = tst.show_ccr_setpoint
- tst.show_ccr_setpoint = true
- compare(tst.show_ccr_setpoint, true)
+ var x20 = PrefTechnicalDetails.show_ccr_setpoint
+ PrefTechnicalDetails.show_ccr_setpoint = true
+ compare(PrefTechnicalDetails.show_ccr_setpoint, true)
- var x21 = tst.show_icd
- tst.show_icd = true
- compare(tst.show_icd, true)
+ var x21 = PrefTechnicalDetails.show_icd
+ PrefTechnicalDetails.show_icd = true
+ compare(PrefTechnicalDetails.show_icd, true)
- var x22 = tst.show_pictures_in_profile
- tst.show_pictures_in_profile = true
- compare(tst.show_pictures_in_profile, true)
+ var x22 = PrefTechnicalDetails.show_pictures_in_profile
+ PrefTechnicalDetails.show_pictures_in_profile = true
+ compare(PrefTechnicalDetails.show_pictures_in_profile, true)
- var x23 = tst.show_sac
- tst.show_sac = true
- compare(tst.show_sac, true)
+ var x23 = PrefTechnicalDetails.show_sac
+ PrefTechnicalDetails.show_sac = true
+ compare(PrefTechnicalDetails.show_sac, true)
- var x24 = tst.show_scr_ocpo2
- tst.show_scr_ocpo2 = true
- compare(tst.show_scr_ocpo2, true)
+ var x24 = PrefTechnicalDetails.show_scr_ocpo2
+ PrefTechnicalDetails.show_scr_ocpo2 = true
+ compare(PrefTechnicalDetails.show_scr_ocpo2, true)
- var x25 = tst.tankbar
- tst.tankbar = true
- compare(tst.tankbar, true)
+ var x25 = PrefTechnicalDetails.tankbar
+ PrefTechnicalDetails.tankbar = true
+ compare(PrefTechnicalDetails.tankbar, true)
- var x26 = tst.vpmb_conservatism
- tst.vpmb_conservatism = 127
- compare(tst.vpmb_conservatism, 127)
+ var x26 = PrefTechnicalDetails.vpmb_conservatism
+ PrefTechnicalDetails.vpmb_conservatism = 127
+ compare(PrefTechnicalDetails.vpmb_conservatism, 127)
- var x27 = tst.zoomed_plot
- tst.zoomed_plot = true
- compare(tst.zoomed_plot, true)
+ var x27 = PrefTechnicalDetails.zoomed_plot
+ PrefTechnicalDetails.zoomed_plot = true
+ compare(PrefTechnicalDetails.zoomed_plot, true)
}
}