~mzanetti/unity8/modeswitchwarning

« back to all changes in this revision

Viewing changes to tests/qmltests/tst_DisabledScreenNotice.qml

  • Committer: Michael Zanetti
  • Date: 2015-10-26 16:47:52 UTC
  • mfrom: (1978.2.32 trunk)
  • Revision ID: michael.zanetti@canonical.com-20151026164752-8yt7ngcng344mb67
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2015 Canonical, Ltd.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License as published by
 
6
 * the Free Software Foundation; version 3.
 
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 General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 */
 
16
 
 
17
import QtQuick 2.4
 
18
import QtTest 1.0
 
19
import Unity.Test 0.1
 
20
import "../../qml"
 
21
 
 
22
 
 
23
Item {
 
24
    id: root
 
25
    width: units.gu(70)
 
26
    height: units.gu(70)
 
27
 
 
28
    DisabledScreenNotice {
 
29
        anchors.fill: parent
 
30
    }
 
31
 
 
32
    UnityTestCase {
 
33
        id: testCase
 
34
        name: "DisabledScreenNotice"
 
35
        when: windowShown
 
36
    }
 
37
}