aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tst_qPrefUnits.qml
blob: fe74ee965107bd6f1e26a93f57db091ed121f65e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// 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)

//TBD		var x2 = tst.duration_units
//TBD		tst.duration_units = ??
//TBD		compare(tst.duration_units,  ??)

//TBD		var x3 = tst.length
//TBD		tst.=length = ??
//TBD		compare(tst.length,  ??)

//TBD		var x4 = tst.pressure
//TBD		tst.pressure = ??
//TBD		compare(tst.pressure, ??)

		var x5 = tst.show_units_table
		tst.show_units_table = true
		compare(tst.show_units_table, true)

//TBD		var x6 = tst.temperature
//TBD		tst.temperature = ??
//TBD		compare(tst.temperature, ??)

		var x7 = tst.unit_system
		tst.unit_system = "metric" 
		compare(tst.unit_system, "metric")

//TBD		var x8 = tst.vertical_speed_time
//TBD		tst.vertical_speed_time = ??
//TBD		compare(tst.vertical_speed_time, ??)

//TBD		var x9 = tst.volume
//TBD		tst.volume = ??
//TBD		compare(tst.volume, ??)

//TBD		var x10 = tst.weight
//TBD		tst.weight = ??
//TBD		compare(tst.weight, ??)
	}
}