aboutsummaryrefslogtreecommitdiffstats
path: root/tests/tst_qPrefFacebook.qml
blob: a56c6e685ffef47e1260c89d98e50f60b8c68b21 (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
// 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")
	}
}