Merge lp:~nick-dedekind/ubuntu-settings-components/transfer-menu into lp:~registry/ubuntu-settings-components/trunk
- transfer-menu
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Michał Sawicz |
Approved revision: | 74 |
Merged at revision: | 74 |
Proposed branch: | lp:~nick-dedekind/ubuntu-settings-components/transfer-menu |
Merge into: | lp:~registry/ubuntu-settings-components/trunk |
Prerequisite: | lp:~nick-dedekind/ubuntu-settings-components/menu.plugin |
Diff against target: |
374 lines (+304/-1) 8 files modified
SettingsComponents.qml (+19/-0) Ubuntu/Settings/Menus/CMakeLists.txt (+1/-0) Ubuntu/Settings/Menus/TransferMenu.qml (+96/-0) Ubuntu/Settings/Menus/plugin.cpp (+6/-0) Ubuntu/Settings/Menus/types.h (+43/-0) debian/changelog (+2/-1) tests/qmltests/CMakeLists.txt (+1/-0) tests/qmltests/Menus/tst_TransferMenu.qml (+136/-0) |
To merge this branch: | bzr merge lp:~nick-dedekind/ubuntu-settings-components/transfer-menu |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michał Sawicz (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Andrea Cimitan (community) | Needs Fixing | ||
Review via email: mp+224672@code.launchpad.net |
Commit message
Added TransferMenu
Description of the change
* Are there any related MPs required for this MP to build/function as expected? Please list.
No
* Did you perform an exploratory manual test run of your code change and any related functionality?
Yes
* Did you make sure that your branch does not contain spurious tags?
Yes
* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A
PS Jenkins bot (ps-jenkins) wrote : | # |
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:69
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:70
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Charles Kerr (charlesk) wrote : | # |
I've asked Cimi to review this as he's a member of ubuntu-
> * Did you perform an exploratory manual test run of the code change and any related functionality?
Yes.
Manual test conducted in conjunction with
https:/
> * Did CI run pass? If not, please explain why.
Yes.
Andrea Cimitan (cimi) wrote : | # |
I'd test what should change with active: true or false (visibility).
Nick Dedekind (nick-dedekind) wrote : | # |
> I'd test what should change with active: true or false (visibility).
Done. & added stateText test
Michał Sawicz (saviq) wrote : | # |
Bump changelog so we can depend on it?
More inline.
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:71
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Michał Sawicz (saviq) wrote : | # |
Oh and one more thing... Do (should) the enum values come from somewhere?
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:72
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Nick Dedekind (nick-dedekind) wrote : | # |
Fixed review comments
Nick Dedekind (nick-dedekind) wrote : | # |
> Oh and one more thing... Do (should) the enum values come from somewhere?
They come from indicator-transfer
http://
would need to do some shizzle in there if we wanted to export to includes.
Michał Sawicz (saviq) wrote : | # |
> > Oh and one more thing... Do (should) the enum values come from somewhere?
>
> They come from indicator-transfer
> http://
> actions/
>
> would need to do some shizzle in there if we wanted to export to includes.
I'd just be worried that this get out of sync... There's probably no lib from the indicator that we could link to?
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:73
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Nick Dedekind (nick-dedekind) wrote : | # |
> > > Oh and one more thing... Do (should) the enum values come from somewhere?
> >
> > They come from indicator-transfer
> > http://
> > actions/
> >
> > would need to do some shizzle in there if we wanted to export to includes.
>
> I'd just be worried that this get out of sync... There's probably no lib from
> the indicator that we could link to?
Not for the transfer indicator specifically. There's libindicator, but I don't think it's used for the indicators we use.
- 75. By Nick Dedekind
-
updated debian packaging
Preview Diff
1 | === modified file 'SettingsComponents.qml' | |||
2 | --- SettingsComponents.qml 2014-07-01 12:51:28 +0000 | |||
3 | +++ SettingsComponents.qml 2014-07-07 15:54:19 +0000 | |||
4 | @@ -159,6 +159,25 @@ | |||
5 | 159 | onPlay: { mediaPlayer.running = !mediaPlayer.running; } | 159 | onPlay: { mediaPlayer.running = !mediaPlayer.running; } |
6 | 160 | } | 160 | } |
7 | 161 | 161 | ||
8 | 162 | TransferMenu { | ||
9 | 163 | text: "Video Downloading" | ||
10 | 164 | stateText: "3 minutes remaning" | ||
11 | 165 | iconSource: "tests/artwork/speak-now.jpg" | ||
12 | 166 | progress: 0.6 | ||
13 | 167 | active: true | ||
14 | 168 | removable: true | ||
15 | 169 | confirmRemoval: true | ||
16 | 170 | } | ||
17 | 171 | |||
18 | 172 | TransferMenu { | ||
19 | 173 | text: "Video Downloading" | ||
20 | 174 | iconSource: "tests/artwork/speak-now.jpg" | ||
21 | 175 | progress: 0.6 | ||
22 | 176 | active: false | ||
23 | 177 | removable: true | ||
24 | 178 | confirmRemoval: true | ||
25 | 179 | } | ||
26 | 180 | |||
27 | 162 | AccessPointMenu { | 181 | AccessPointMenu { |
28 | 163 | checked: true | 182 | checked: true |
29 | 164 | secure: true | 183 | secure: true |
30 | 165 | 184 | ||
31 | === modified file 'Ubuntu/Settings/Menus/CMakeLists.txt' | |||
32 | --- Ubuntu/Settings/Menus/CMakeLists.txt 2014-07-07 15:54:19 +0000 | |||
33 | +++ Ubuntu/Settings/Menus/CMakeLists.txt 2014-07-07 15:54:19 +0000 | |||
34 | @@ -11,6 +11,7 @@ | |||
35 | 11 | 11 | ||
36 | 12 | set(UbuntuSettingsMenusQml_SOURCES | 12 | set(UbuntuSettingsMenusQml_SOURCES |
37 | 13 | plugin.cpp | 13 | plugin.cpp |
38 | 14 | types.h | ||
39 | 14 | ) | 15 | ) |
40 | 15 | add_definitions(-DUBUNTUSETTINGSCOMPONENTS_LIBRARY) | 16 | add_definitions(-DUBUNTUSETTINGSCOMPONENTS_LIBRARY) |
41 | 16 | 17 | ||
42 | 17 | 18 | ||
43 | === added file 'Ubuntu/Settings/Menus/TransferMenu.qml' | |||
44 | --- Ubuntu/Settings/Menus/TransferMenu.qml 1970-01-01 00:00:00 +0000 | |||
45 | +++ Ubuntu/Settings/Menus/TransferMenu.qml 2014-07-07 15:54:19 +0000 | |||
46 | @@ -0,0 +1,96 @@ | |||
47 | 1 | /* | ||
48 | 2 | * Copyright 2014 Canonical Ltd. | ||
49 | 3 | * | ||
50 | 4 | * This program is free software; you can redistribute it and/or modify | ||
51 | 5 | * it under the terms of the GNU Lesser General Public License as published by | ||
52 | 6 | * the Free Software Foundation; version 3. | ||
53 | 7 | * | ||
54 | 8 | * This program is distributed in the hope that it will be useful, | ||
55 | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
56 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
57 | 11 | * GNU Lesser General Public License for more details. | ||
58 | 12 | * | ||
59 | 13 | * You should have received a copy of the GNU Lesser General Public License | ||
60 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
61 | 15 | */ | ||
62 | 16 | |||
63 | 17 | import QtQuick 2.0 | ||
64 | 18 | import Ubuntu.Components 0.1 | ||
65 | 19 | import Ubuntu.Components.ListItems 0.1 as ListItem | ||
66 | 20 | import QtQuick.Layouts 1.1 | ||
67 | 21 | |||
68 | 22 | ListItem.Empty { | ||
69 | 23 | id: menu | ||
70 | 24 | |||
71 | 25 | property alias iconSource: icon.source | ||
72 | 26 | property alias text: label.text | ||
73 | 27 | property alias stateText: stateLabel.text | ||
74 | 28 | property alias progress: progressBar.value | ||
75 | 29 | property bool active: false | ||
76 | 30 | |||
77 | 31 | property alias maximum: progressBar.maximumValue | ||
78 | 32 | |||
79 | 33 | implicitHeight: row.height + units.gu(2) | ||
80 | 34 | |||
81 | 35 | RowLayout { | ||
82 | 36 | id: row | ||
83 | 37 | anchors { | ||
84 | 38 | left: parent.left | ||
85 | 39 | right: parent.right | ||
86 | 40 | verticalCenter: parent.verticalCenter | ||
87 | 41 | leftMargin: menu.__contentsMargins | ||
88 | 42 | rightMargin: menu.__contentsMargins | ||
89 | 43 | } | ||
90 | 44 | |||
91 | 45 | UbuntuShape { | ||
92 | 46 | id: imageShape | ||
93 | 47 | Layout.preferredWidth: units.gu(5) | ||
94 | 48 | Layout.preferredHeight: units.gu(5) | ||
95 | 49 | |||
96 | 50 | Layout.alignment: Qt.AlignTop | ||
97 | 51 | |||
98 | 52 | image: Image { | ||
99 | 53 | objectName: "icon" | ||
100 | 54 | id: icon | ||
101 | 55 | |||
102 | 56 | sourceSize { | ||
103 | 57 | width: units.gu(5) | ||
104 | 58 | height: units.gu(5) | ||
105 | 59 | } | ||
106 | 60 | } | ||
107 | 61 | } | ||
108 | 62 | |||
109 | 63 | ColumnLayout { | ||
110 | 64 | spacing: units.gu(0.5) | ||
111 | 65 | |||
112 | 66 | Label { | ||
113 | 67 | id: label | ||
114 | 68 | objectName: "text" | ||
115 | 69 | Layout.fillWidth: true | ||
116 | 70 | |||
117 | 71 | elide: Text.ElideRight | ||
118 | 72 | maximumLineCount: 1 | ||
119 | 73 | } | ||
120 | 74 | |||
121 | 75 | ProgressBar { | ||
122 | 76 | id: progressBar | ||
123 | 77 | objectName: "progress" | ||
124 | 78 | visible: menu.active | ||
125 | 79 | value: 0.0 | ||
126 | 80 | |||
127 | 81 | Layout.preferredHeight: units.gu(2) | ||
128 | 82 | Layout.fillWidth: true | ||
129 | 83 | } | ||
130 | 84 | |||
131 | 85 | Label { | ||
132 | 86 | id: stateLabel | ||
133 | 87 | objectName: "stateText" | ||
134 | 88 | Layout.fillWidth: true | ||
135 | 89 | visible: menu.active | ||
136 | 90 | |||
137 | 91 | elide: Text.ElideRight | ||
138 | 92 | maximumLineCount: 1 | ||
139 | 93 | } | ||
140 | 94 | } | ||
141 | 95 | } | ||
142 | 96 | } | ||
143 | 0 | 97 | ||
144 | === modified file 'Ubuntu/Settings/Menus/plugin.cpp' | |||
145 | --- Ubuntu/Settings/Menus/plugin.cpp 2014-07-07 15:54:19 +0000 | |||
146 | +++ Ubuntu/Settings/Menus/plugin.cpp 2014-07-07 15:54:19 +0000 | |||
147 | @@ -14,8 +14,14 @@ | |||
148 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
149 | 15 | */ | 15 | */ |
150 | 16 | 16 | ||
151 | 17 | // local | ||
152 | 17 | #include "plugin.h" | 18 | #include "plugin.h" |
153 | 19 | #include "types.h" | ||
154 | 20 | |||
155 | 21 | // Qt | ||
156 | 22 | #include <QtQml/qqml.h> | ||
157 | 18 | 23 | ||
158 | 19 | void UbuntuSettingsComponentsPlugin::registerTypes(const char *uri) | 24 | void UbuntuSettingsComponentsPlugin::registerTypes(const char *uri) |
159 | 20 | { | 25 | { |
160 | 26 | qmlRegisterUncreatableType<TransferState>(uri, 0, 1, "TransferState", "Can't create TransferState class"); | ||
161 | 21 | } | 27 | } |
162 | 22 | 28 | ||
163 | === added file 'Ubuntu/Settings/Menus/types.h' | |||
164 | --- Ubuntu/Settings/Menus/types.h 1970-01-01 00:00:00 +0000 | |||
165 | +++ Ubuntu/Settings/Menus/types.h 2014-07-07 15:54:19 +0000 | |||
166 | @@ -0,0 +1,43 @@ | |||
167 | 1 | /* | ||
168 | 2 | * Copyright (C) 2014 Canonical, Ltd. | ||
169 | 3 | * | ||
170 | 4 | * This program is free software; you can redistribute it and/or modify | ||
171 | 5 | * it under the terms of the GNU General Public License as published by | ||
172 | 6 | * the Free Software Foundation; version 3. | ||
173 | 7 | * | ||
174 | 8 | * This program is distributed in the hope that it will be useful, | ||
175 | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
176 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
177 | 11 | * GNU General Public License for more details. | ||
178 | 12 | * | ||
179 | 13 | * You should have received a copy of the GNU General Public License | ||
180 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
181 | 15 | */ | ||
182 | 16 | |||
183 | 17 | #ifndef UBUNTUSETTINGSMENUSTYPES_H | ||
184 | 18 | #define UBUNTUSETTINGSMENUSTYPES_H | ||
185 | 19 | |||
186 | 20 | #include "pluginglobal.h" | ||
187 | 21 | |||
188 | 22 | #include <QObject> | ||
189 | 23 | |||
190 | 24 | class UBUNTUSETTINGSCOMPONENTS_EXPORT TransferState : public QObject | ||
191 | 25 | { | ||
192 | 26 | Q_OBJECT | ||
193 | 27 | Q_ENUMS(TransferStates) | ||
194 | 28 | public: | ||
195 | 29 | enum TransferStates { | ||
196 | 30 | Queued, | ||
197 | 31 | Running, | ||
198 | 32 | Paused, | ||
199 | 33 | Canceled, | ||
200 | 34 | Hashing, | ||
201 | 35 | Processing, | ||
202 | 36 | Finished, | ||
203 | 37 | Error | ||
204 | 38 | }; | ||
205 | 39 | |||
206 | 40 | TransferState(QObject* parent = 0): QObject(parent) {} | ||
207 | 41 | }; | ||
208 | 42 | |||
209 | 43 | #endif // UBUNTUSETTINGSMENUSTYPES_H | ||
210 | 0 | 44 | ||
211 | === modified file 'debian/changelog' | |||
212 | --- debian/changelog 2014-07-07 15:54:19 +0000 | |||
213 | +++ debian/changelog 2014-07-07 15:54:19 +0000 | |||
214 | @@ -2,8 +2,9 @@ | |||
215 | 2 | 2 | ||
216 | 3 | [ Nick Dedekind ] | 3 | [ Nick Dedekind ] |
217 | 4 | * Added plugin module for Ubuntu.Settings.Menus | 4 | * Added plugin module for Ubuntu.Settings.Menus |
218 | 5 | * Added TransferMenu | ||
219 | 5 | 6 | ||
221 | 6 | -- Nicholas Dedekind <nicholas.dedekind@gmail.com> Mon, 07 Jul 2014 16:43:16 +0100 | 7 | -- Nicholas Dedekind <nicholas.dedekind@gmail.com> Mon, 07 Jul 2014 12:28:37 +0100 |
222 | 7 | 8 | ||
223 | 8 | ubuntu-settings-components (0.2+14.10.20140701.2-0ubuntu2) utopic; urgency=medium | 9 | ubuntu-settings-components (0.2+14.10.20140701.2-0ubuntu2) utopic; urgency=medium |
224 | 9 | 10 | ||
225 | 10 | 11 | ||
226 | === modified file 'tests/qmltests/CMakeLists.txt' | |||
227 | --- tests/qmltests/CMakeLists.txt 2014-07-07 15:54:19 +0000 | |||
228 | +++ tests/qmltests/CMakeLists.txt 2014-07-07 15:54:19 +0000 | |||
229 | @@ -31,3 +31,4 @@ | |||
230 | 31 | add_qml_test(Menus UserSessionMenu) | 31 | add_qml_test(Menus UserSessionMenu) |
231 | 32 | add_qml_test(Menus TextMessageMenu) | 32 | add_qml_test(Menus TextMessageMenu) |
232 | 33 | add_qml_test(Menus TimeZoneMenu) | 33 | add_qml_test(Menus TimeZoneMenu) |
233 | 34 | add_qml_test(Menus TransferMenu) | ||
234 | 34 | 35 | ||
235 | === added file 'tests/qmltests/Menus/tst_TransferMenu.qml' | |||
236 | --- tests/qmltests/Menus/tst_TransferMenu.qml 1970-01-01 00:00:00 +0000 | |||
237 | +++ tests/qmltests/Menus/tst_TransferMenu.qml 2014-07-07 15:54:19 +0000 | |||
238 | @@ -0,0 +1,136 @@ | |||
239 | 1 | /* | ||
240 | 2 | * Copyright 2014 Canonical Ltd. | ||
241 | 3 | * | ||
242 | 4 | * This program is free software; you can redistribute it and/or modify | ||
243 | 5 | * it under the terms of the GNU Lesser General Public License as published by | ||
244 | 6 | * the Free Software Foundation; version 3. | ||
245 | 7 | * | ||
246 | 8 | * This program is distributed in the hope that it will be useful, | ||
247 | 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
248 | 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
249 | 11 | * GNU Lesser General Public License for more details. | ||
250 | 12 | * | ||
251 | 13 | * You should have received a copy of the GNU Lesser General Public License | ||
252 | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
253 | 15 | */ | ||
254 | 16 | |||
255 | 17 | import QtQuick 2.0 | ||
256 | 18 | import QtTest 1.0 | ||
257 | 19 | import Ubuntu.Components 0.1 | ||
258 | 20 | import Ubuntu.Settings.Menus 0.1 | ||
259 | 21 | import "../utils.js" as UtilsJS | ||
260 | 22 | |||
261 | 23 | Item { | ||
262 | 24 | width: units.gu(42) | ||
263 | 25 | height: units.gu(75) | ||
264 | 26 | |||
265 | 27 | Flickable { | ||
266 | 28 | id: flickable | ||
267 | 29 | |||
268 | 30 | anchors.fill: parent | ||
269 | 31 | contentWidth: column.width | ||
270 | 32 | contentHeight: column.height | ||
271 | 33 | |||
272 | 34 | Item { | ||
273 | 35 | id: column | ||
274 | 36 | |||
275 | 37 | width: flickable.width | ||
276 | 38 | height: childrenRect.height | ||
277 | 39 | |||
278 | 40 | TransferMenu { | ||
279 | 41 | id: transferMenu | ||
280 | 42 | |||
281 | 43 | text: "Downloading Movie" | ||
282 | 44 | progress: 0 | ||
283 | 45 | active: false | ||
284 | 46 | iconSource: Qt.resolvedUrl("../../artwork/avatar.png") | ||
285 | 47 | } | ||
286 | 48 | TransferMenu { | ||
287 | 49 | id: transferMenu2 | ||
288 | 50 | anchors.top: transferMenu.bottom | ||
289 | 51 | |||
290 | 52 | text: "Syncing Data" | ||
291 | 53 | progress: 0.6 | ||
292 | 54 | active: true | ||
293 | 55 | iconSource: Qt.resolvedUrl("../../artwork/rhythmbox.png") | ||
294 | 56 | } | ||
295 | 57 | } | ||
296 | 58 | } | ||
297 | 59 | |||
298 | 60 | TestCase { | ||
299 | 61 | name: "TransferMenu" | ||
300 | 62 | when: windowShown | ||
301 | 63 | |||
302 | 64 | function init() { | ||
303 | 65 | transferMenu.text = ""; | ||
304 | 66 | transferMenu.iconSource = ""; | ||
305 | 67 | transferMenu.progress = 0; | ||
306 | 68 | transferMenu.active = false; | ||
307 | 69 | } | ||
308 | 70 | |||
309 | 71 | function test_iconSource_data() { | ||
310 | 72 | return [ { icon: Qt.resolvedUrl("../../artwork/avatar.png") }, | ||
311 | 73 | { icon: Qt.resolvedUrl("../../artwork/rhythmbox.png") } | ||
312 | 74 | ]; | ||
313 | 75 | } | ||
314 | 76 | |||
315 | 77 | function test_iconSource(data) { | ||
316 | 78 | transferMenu.iconSource = data.icon; | ||
317 | 79 | |||
318 | 80 | var icon = UtilsJS.findChild(transferMenu, "icon"); | ||
319 | 81 | compare(icon.source, data.icon, "Icon does not match data"); | ||
320 | 82 | } | ||
321 | 83 | |||
322 | 84 | function test_text_data() { | ||
323 | 85 | return [ { text: "Text 1" }, | ||
324 | 86 | { text: "Text 2" } | ||
325 | 87 | ]; | ||
326 | 88 | } | ||
327 | 89 | |||
328 | 90 | function test_text(data) { | ||
329 | 91 | transferMenu.text = data.text; | ||
330 | 92 | |||
331 | 93 | var text = UtilsJS.findChild(transferMenu, "text"); | ||
332 | 94 | compare(text.text, data.text, "Text does not match data"); | ||
333 | 95 | } | ||
334 | 96 | |||
335 | 97 | function test_stateText_data() { | ||
336 | 98 | return [ { stateText: "State 1" }, | ||
337 | 99 | { stateText: "State 2" } | ||
338 | 100 | ]; | ||
339 | 101 | } | ||
340 | 102 | |||
341 | 103 | function test_stateText(data) { | ||
342 | 104 | transferMenu.stateText = data.stateText; | ||
343 | 105 | |||
344 | 106 | var stateText = UtilsJS.findChild(transferMenu, "stateText"); | ||
345 | 107 | compare(stateText.text, data.stateText, "State text does not match data"); | ||
346 | 108 | } | ||
347 | 109 | |||
348 | 110 | function test_progress_data() { | ||
349 | 111 | return [ { progress: 0.5 }, | ||
350 | 112 | { progress: 1.0 } | ||
351 | 113 | ]; | ||
352 | 114 | } | ||
353 | 115 | |||
354 | 116 | function test_progress(data) { | ||
355 | 117 | transferMenu.progress = data.progress; | ||
356 | 118 | |||
357 | 119 | var progress = UtilsJS.findChild(transferMenu, "progress"); | ||
358 | 120 | compare(progress.value, data.progress, "Progress does not match expected value"); | ||
359 | 121 | } | ||
360 | 122 | |||
361 | 123 | function test_active() { | ||
362 | 124 | var progress = UtilsJS.findChild(transferMenu, "progress"); | ||
363 | 125 | var stateText = UtilsJS.findChild(transferMenu, "stateText"); | ||
364 | 126 | |||
365 | 127 | transferMenu.active = true; | ||
366 | 128 | compare(progress.visible, true, "Progress should be visible when active"); | ||
367 | 129 | compare(stateText.visible, true, "State should be visible when active"); | ||
368 | 130 | |||
369 | 131 | transferMenu.active = false; | ||
370 | 132 | compare(progress.visible, false, "Progress should not be visible when inactive"); | ||
371 | 133 | compare(stateText.visible, false, "State should not be visible when inactive"); | ||
372 | 134 | } | ||
373 | 135 | } | ||
374 | 136 | } |
FAILED: Continuous integration, rev:68 jenkins. qa.ubuntu. com/job/ ubuntu- settings- components- ci/52/ jenkins. qa.ubuntu. com/job/ ubuntu- settings- components- qmltests- utopic/ 11 jenkins. qa.ubuntu. com/job/ ubuntu- settings- components- utopic- amd64-ci/ 14 jenkins. qa.ubuntu. com/job/ ubuntu- settings- components- utopic- armhf-ci/ 14
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/ubuntu- settings- components- ci/52/rebuild
http://