2
* Copyright 2015 Canonical Ltd.
4
* This file is part of dialer-app.
6
* dialer-app is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 3.
10
* dialer-app is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
21
import Ubuntu.Test 0.1
22
import Ubuntu.Components 1.1
24
import '../../modules/Ubuntu/Components/Extras/PhotoEditor'
32
property list<Action> toolActions: [
33
Action { text: "ToolActions01" },
34
Action { text: "ToolActions02" }
37
property list<Action> filterActions: [
38
Action { text: "FilterActions01" },
39
Action { text: "FilterActions02" }
44
toolActions: root.toolActions
48
id: actionsBarTestCase
49
name: 'actionsBarTestCase'
53
waitForRendering(actionsBar);
59
function test_actionsBarCheckColumnHeightWhitFilterActions() {
60
actionsBar.filterActions = root.filterActions
61
tryCompare(actionsBar, 'height', units.gu(20))
64
function test_actionsBarCheckColumnHeightWhitFilterActionsEmpty() {
65
actionsBar.filterActions = []
66
tryCompare(actionsBar, 'height', units.gu(6))
69
function test_actionsBarCheckFiltersBarVisibleWhitFilterActions() {
70
actionsBar.filterActions = root.filterActions
71
var filtersBar = findChild(actionsBar, 'filtersBar')
72
tryCompare(filtersBar, 'visible', true)
75
function test_actionsBarCheckFiltersBarNotVisibleWhitFilterActionsEmpty() {
76
actionsBar.filterActions = []
77
var filtersBar = findChild(actionsBar, 'filtersBar')
78
tryCompare(filtersBar, 'visible', false)