From b05e4c7b5fb4e858a997086caaeb7dc680394a34 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Sat, 7 Jul 2018 18:55:24 +0200 Subject: 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 --- tests/tst_qPref.qml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/tst_qPref.qml (limited to 'tests/tst_qPref.qml') 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) + } +} -- cgit v1.2.3-70-g09d2