subsurface/tests/tst_qPrefFacebook.qml
jan Iversen 1ee7265972 tests: update qml test cases
use new qml registration

Signed-off-by: Jan Iversen <jani@apache.org>
2018-09-11 17:25:00 -07:00

21 lines
497 B
QML

// 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")
}
}