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_qPrefPartialPressureGas.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_qPrefPartialPressureGas.qml')
-rw-r--r-- | tests/tst_qPrefPartialPressureGas.qml | 51 |
1 files changed, 21 insertions, 30 deletions
diff --git a/tests/tst_qPrefPartialPressureGas.qml b/tests/tst_qPrefPartialPressureGas.qml index 049ab2b93..5000a3dae 100644 --- a/tests/tst_qPrefPartialPressureGas.qml +++ b/tests/tst_qPrefPartialPressureGas.qml @@ -1,46 +1,37 @@ // SPDX-License-Identifier: GPL-2.0 import QtQuick 2.6 import QtTest 1.2 -import org.subsurfacedivelog.mobile 1.0 TestCase { name: "qPrefPartialPressureGas" - SsrfPartialPressureGasPrefs { - id: tst - } - - SsrfPrefs { - id: prefs - } - function test_variables() { - var x1 = tst.phe = true - tst.phe = true - compare(tst.phe, true) + var x1 = PrefPartialPressureGas.phe = true + PrefPartialPressureGas.phe = true + compare(PrefPartialPressureGas.phe, true) - var x2 = tst.phe_threshold = 21.2 - tst.phe_threshold = 21.2 - compare(tst.phe_threshold, 21.2) + var x2 = PrefPartialPressureGas.phe_threshold = 21.2 + PrefPartialPressureGas.phe_threshold = 21.2 + compare(PrefPartialPressureGas.phe_threshold, 21.2) - var x3 = tst.pn2 = true - tst.pn2 = true - compare(tst.pn2, true) + var x3 = PrefPartialPressureGas.pn2 = true + PrefPartialPressureGas.pn2 = true + compare(PrefPartialPressureGas.pn2, true) - var x4 = tst.pn2_threshold = 21.3 - tst.pn2_threshold = 21.3 - compare(tst.pn2_threshold, 21.3) + var x4 = PrefPartialPressureGas.pn2_threshold = 21.3 + PrefPartialPressureGas.pn2_threshold = 21.3 + compare(PrefPartialPressureGas.pn2_threshold, 21.3) - var x5 = tst.po2 = true - tst.po2 = true - compare(tst.po2, true) + var x5 = PrefPartialPressureGas.po2 = true + PrefPartialPressureGas.po2 = true + compare(PrefPartialPressureGas.po2, true) - var x6 = tst.po2_threshold_max = 21.4 - tst.po2_threshold_max = 21.4 - compare(tst.po2_threshold_max, 21.4) + var x6 = PrefPartialPressureGas.po2_threshold_max = 21.4 + PrefPartialPressureGas.po2_threshold_max = 21.4 + compare(PrefPartialPressureGas.po2_threshold_max, 21.4) - var x7 = tst.po2_threshold_min = 21.5 - tst.po2_threshold_min = 21.5 - compare(tst.po2_threshold_min, 21.5) + var x7 = PrefPartialPressureGas.po2_threshold_min = 21.5 + PrefPartialPressureGas.po2_threshold_min = 21.5 + compare(PrefPartialPressureGas.po2_threshold_min, 21.5) } } |