~unity-api-team/indicator-network/connectivity-service-source-package-shuffle

« back to all changes in this revision

Viewing changes to tests/integration/qt/qml/tst_api.qml

  • Committer: Antti Kaijanmäki
  • Date: 2014-08-14 21:58:02 UTC
  • Revision ID: antti.kaijanmaki@canonical.com-20140814215802-obno44ppwia26fwr
connectivity-service fixes + qt c++ and qml API.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright © 2014 Canonical Ltd.
 
3
 *
 
4
 * This program is free software: you can redistribute it and/or modify it
 
5
 * under the terms of the GNU Lesser General Public License version 3,
 
6
 * as published by the Free Software Foundation.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU Lesser General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU Lesser General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 *
 
16
 * Authors:
 
17
 *     Antti Kaijanmäki <antti.kaijanmaki@canonical.com>
 
18
 */
 
19
 
 
20
import Ubuntu.Connectivity 1.0
 
21
import QtQuick 2.0
 
22
import QtTest 1.0
 
23
 
 
24
/* This test will make sure there are no unintentional changes to the
 
25
 * schemantics of the API (default properties work as expected, etc)
 
26
 * so that any files written to the prior release of the library
 
27
 * will not bail out when loaded resulting in client applications failing
 
28
 * to start.
 
29
 */
 
30
Item {
 
31
 
 
32
    NetworkingStatus {
 
33
        id: networkingStatus
 
34
        onStatusChanged: {}
 
35
        onLimitationsChanged: {}
 
36
    }
 
37
 
 
38
    TestCase {
 
39
        name: "API Test"
 
40
        id: test_api
 
41
 
 
42
        property int status : networkingStatus.status
 
43
 
 
44
        function test_api() {
 
45
            // just make sure this file can be loaded properly by the QmlEngine.
 
46
            verify(1)
 
47
        }
 
48
    }
 
49
}