summaryrefslogtreecommitdiffstats
path: root/tests/tst_qPrefFacebook.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tst_qPrefFacebook.qml')
-rw-r--r--tests/tst_qPrefFacebook.qml25
1 files changed, 11 insertions, 14 deletions
diff --git a/tests/tst_qPrefFacebook.qml b/tests/tst_qPrefFacebook.qml
index a56c6e685..721179772 100644
--- a/tests/tst_qPrefFacebook.qml
+++ b/tests/tst_qPrefFacebook.qml
@@ -1,24 +1,21 @@
// 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")
+ 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")
}
}