summaryrefslogtreecommitdiffstats
path: root/tests/tst_qPref.qml
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-07-07 18:55:24 +0200
committerGravatar jan Iversen <jani@apache.org>2018-07-12 17:12:56 +0200
commitb05e4c7b5fb4e858a997086caaeb7dc680394a34 (patch)
treef613f15efad35b9f723c92c043ddb161776633e0 /tests/tst_qPref.qml
parent55f0b3b1f8ac641fc29ffdbb166b9b6947d7eb03 (diff)
downloadsubsurface-b05e4c7b5fb4e858a997086caaeb7dc680394a34.tar.gz
tests: make qml test harness
build a qml test runner that includes ssrf interface The qml test runner allows having qml test files. Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'tests/tst_qPref.qml')
-rw-r--r--tests/tst_qPref.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/tst_qPref.qml b/tests/tst_qPref.qml
new file mode 100644
index 000000000..99b798423
--- /dev/null
+++ b/tests/tst_qPref.qml
@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: GPL-2.0
+import QtQuick 2.6
+import QtTest 1.2
+import org.subsurfacedivelog.mobile 1.0
+
+TestCase {
+ name: "qPref"
+
+ SsrfPrefs {
+ id: prefs
+ }
+
+ function test_register() {
+ var x = prefs.mobile_version
+ compare(x, prefs.mobile_version)
+ }
+}