summaryrefslogtreecommitdiffstats
path: root/tests/tst_qPrefFacebook.qml
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2019-02-01 04:11:25 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-02-01 17:16:43 -0800
commita1ffe115cfb27bd0dd57bf5266c7d37d9ce64dab (patch)
tree6589e06ecce1d0c461900fd2537bf5125afadf9d /tests/tst_qPrefFacebook.qml
parent0c07b02974a65608d7d71ef150d322678ec1170b (diff)
downloadsubsurface-a1ffe115cfb27bd0dd57bf5266c7d37d9ce64dab.tar.gz
facebook: remove the featute from the code base
Remove from: - unit tests - desktop widgets - preferences - core intergration - cmakefiles - build scripts - icons - docs Also remove the plugins and social network integration. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'tests/tst_qPrefFacebook.qml')
-rw-r--r--tests/tst_qPrefFacebook.qml46
1 files changed, 0 insertions, 46 deletions
diff --git a/tests/tst_qPrefFacebook.qml b/tests/tst_qPrefFacebook.qml
deleted file mode 100644
index 24be306a7..000000000
--- a/tests/tst_qPrefFacebook.qml
+++ /dev/null
@@ -1,46 +0,0 @@
-// 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")
- }
-
- Item {
- id: spyCatcher
-
- property bool spy1 : false
- property bool spy2 : false
- property bool spy3 : false
-
- Connections {
- target: PrefFacebook
- onAccess_tokenChanged: {spyCatcher.spy1 = true }
- onAlbum_idChanged: {spyCatcher.spy2 = true }
- onUser_idChanged: {spyCatcher.spy3 = true }
- }
- }
-
- function test_signals() {
- PrefFacebook.access_token = "qml"
- PrefFacebook.album_id = "qml"
- PrefFacebook.user_id = "qml"
-
- compare(spyCatcher.spy1, true)
- compare(spyCatcher.spy2, true)
- compare(spyCatcher.spy3, true)
- }
-}