2018-08-13 20:16:51 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
import QtQuick 2.6
|
|
|
|
import QtTest 1.2
|
|
|
|
|
|
|
|
TestCase {
|
|
|
|
name: "qPrefGeneral"
|
|
|
|
|
|
|
|
function test_variables() {
|
2018-09-07 11:53:00 +00:00
|
|
|
var x1 = PrefGeneral.auto_recalculate_thumbnails
|
|
|
|
PrefGeneral.auto_recalculate_thumbnails = true
|
|
|
|
compare(PrefGeneral.auto_recalculate_thumbnails, true)
|
2018-08-13 20:16:51 +00:00
|
|
|
|
2018-09-07 11:53:00 +00:00
|
|
|
var x2 = PrefGeneral.default_cylinder
|
|
|
|
PrefGeneral.default_cylinder = "my string"
|
|
|
|
compare(PrefGeneral.default_cylinder, "my string")
|
2018-08-13 20:16:51 +00:00
|
|
|
|
2018-09-07 11:53:00 +00:00
|
|
|
var x3 = PrefGeneral.default_filename
|
|
|
|
PrefGeneral.default_filename = "my string"
|
|
|
|
compare(PrefGeneral.default_filename, "my string")
|
2018-08-13 20:16:51 +00:00
|
|
|
|
2018-09-07 11:53:00 +00:00
|
|
|
//TBD var x4 = PrefGeneral.default_file_behavior
|
|
|
|
//TBD PrefGeneral.default_file_behavior = ??
|
|
|
|
//TBD compare(PrefGeneral.default_file_behavior, ??)
|
2018-08-13 20:16:51 +00:00
|
|
|
|
2018-09-07 11:53:00 +00:00
|
|
|
var x5 = PrefGeneral.defaultsetpoint
|
|
|
|
PrefGeneral.defaultsetpoint = 17
|
|
|
|
compare(PrefGeneral.defaultsetpoint, 17)
|
2018-08-13 20:16:51 +00:00
|
|
|
|
2018-09-07 11:53:00 +00:00
|
|
|
var x6 = PrefGeneral.extract_video_thumbnails
|
|
|
|
PrefGeneral.extract_video_thumbnails = true
|
|
|
|
compare(PrefGeneral.extract_video_thumbnails, true)
|
2018-08-13 20:16:51 +00:00
|
|
|
|
2018-09-07 11:53:00 +00:00
|
|
|
var x7 = PrefGeneral.extract_video_thumbnails_position
|
|
|
|
PrefGeneral.extract_video_thumbnails_position = 17
|
|
|
|
compare(PrefGeneral.extract_video_thumbnails_position, 17)
|
2018-08-13 20:16:51 +00:00
|
|
|
|
2018-09-07 11:53:00 +00:00
|
|
|
var x8 = PrefGeneral.ffmpeg_executable
|
|
|
|
PrefGeneral.ffmpeg_executable = "my string"
|
|
|
|
compare(PrefGeneral.ffmpeg_executable, "my string")
|
2018-08-13 20:16:51 +00:00
|
|
|
|
2018-09-07 11:53:00 +00:00
|
|
|
var x9 = PrefGeneral.o2consumption
|
|
|
|
PrefGeneral.o2consumption = 17
|
|
|
|
compare(PrefGeneral.o2consumption, 17)
|
2018-08-13 20:16:51 +00:00
|
|
|
|
2018-09-07 11:53:00 +00:00
|
|
|
var x10 = PrefGeneral.pscr_ratio
|
|
|
|
PrefGeneral.pscr_ratio = 17
|
|
|
|
compare(PrefGeneral.pscr_ratio, 17)
|
2018-08-13 20:16:51 +00:00
|
|
|
|
2018-09-07 11:53:00 +00:00
|
|
|
var x11 = PrefGeneral.use_default_file
|
|
|
|
PrefGeneral.use_default_file = true
|
|
|
|
compare(PrefGeneral.use_default_file, true)
|
2018-08-20 10:50:21 +00:00
|
|
|
|
2018-09-07 11:53:00 +00:00
|
|
|
var x12 = PrefGeneral.diveshareExport_uid
|
|
|
|
PrefGeneral.diveshareExport_uid = "myUid"
|
|
|
|
compare(PrefGeneral.diveshareExport_uid, "myUid")
|
2018-08-20 10:50:21 +00:00
|
|
|
|
2018-09-07 11:53:00 +00:00
|
|
|
var x13 = PrefGeneral.diveshareExport_private
|
|
|
|
PrefGeneral.diveshareExport_private = true
|
|
|
|
compare(PrefGeneral.diveshareExport_private, true)
|
2018-08-13 20:16:51 +00:00
|
|
|
}
|
|
|
|
}
|