summaryrefslogtreecommitdiffstats
path: root/tests/tst_qPrefFacebook.qml
blob: 72117977204bfde2de1ed3d5e3f2770d85c3597f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// SPDX-License-Identifier: GPL-2.0
import QtQuick 2.6
import QtTest 1.2

TestCase {
	name: "qPrefFacebook"

	function test_variables() {
		var x1 = PrefFacebook.access_token
		PrefFacebook.access_token = "my token"
		compare(PrefFacebook.access_token, "my token")

		var x2 = PrefFacebook.album_id
		PrefFacebook.album_id = "my album"
		compare(PrefFacebook.album_id, "my album")

		var x3 = PrefFacebook.user_id
		PrefFacebook.user_id = "my user"
		compare(PrefFacebook.user_id, "my user")
	}
}