diff options
author | jan Iversen <jani@apache.org> | 2018-07-23 18:54:22 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-07-27 12:36:20 -0700 |
commit | 8da7ddc64badd09e309e39ed79f4b6821d84454e (patch) | |
tree | 435a49c85e02d7aad3f63a16a28f6c860bffd6b8 /tests/tst_qPrefFacebook.qml | |
parent | 711b96a143165bf991c69193c0e65f88155e4ba4 (diff) | |
download | subsurface-8da7ddc64badd09e309e39ed79f4b6821d84454e.tar.gz |
tests: add Facebook qml test cases
Add tst_qPrefFacebook qml file to test C++ qml connection
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'tests/tst_qPrefFacebook.qml')
-rw-r--r-- | tests/tst_qPrefFacebook.qml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/tst_qPrefFacebook.qml b/tests/tst_qPrefFacebook.qml new file mode 100644 index 000000000..a56c6e685 --- /dev/null +++ b/tests/tst_qPrefFacebook.qml @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: GPL-2.0 +import QtQuick 2.6 +import QtTest 1.2 +import org.subsurfacedivelog.mobile 1.0 + +TestCase { + name: "qPrefFacebook" + + SsrfFacebookPrefs { + id: facebook + } + + function test_variables() { + var x1 = facebook.access_token + facebook.access_token = "my token" + compare(facebook.access_token, "my token") + var x2 = facebook.album_id + facebook.album_id = "my album" + compare(facebook.album_id, "my album") + var x1 = facebook.user_id + facebook.user_id = "my user" + compare(facebook.user_id, "my user") + } +} |