Merge lp:~vthompson/music-app/fix-swipe-delete-test into lp:music-app/trusty

Proposed by Victor Thompson
Status: Merged
Approved by: Victor Thompson
Approved revision: 551
Merged at revision: 554
Proposed branch: lp:~vthompson/music-app/fix-swipe-delete-test
Merge into: lp:music-app/trusty
Diff against target: 42 lines (+4/-2)
3 files modified
common/SwipeDelete.qml (+2/-0)
music-app.qml (+1/-1)
tests/autopilot/music_app/emulators.py (+1/-1)
To merge this branch: bzr merge lp:~vthompson/music-app/fix-swipe-delete-test
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Nicholas Skaggs (community) Needs Fixing
Andrew Hayzen Approve
Review via email: mp+229718@code.launchpad.net

Commit message

Fix swipe to delete test

Description of the change

Fix swipe to delete test, which is failing due to changes in the most recent 173 image in the ubuntu-ui-toolkit version 1.1.1179+14.10.20140804-0ubuntu1.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Andrew Hayzen (ahayzen) wrote :

LGTM

review: Approve
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

The tests failing in jenkins exhibit the same behaviour on the desktop and are easy to reproduce for me.

I realize the issues are not related ofc to this bug, but :-)

review: Needs Fixing
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Going to have a look at see if I can't propose something to fix these unrelated errors.

551. By Victor Thompson

Make wideAspect dependent upon loadedUI bool

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'common/SwipeDelete.qml'
2--- common/SwipeDelete.qml 2013-11-19 04:57:30 +0000
3+++ common/SwipeDelete.qml 2014-08-06 23:22:40 +0000
4@@ -42,6 +42,7 @@
5 width: parent.width / 3
6 Label {
7 id: swipeBackgroundLeftText
8+ objectName: "leftDelete"
9 anchors.margins: units.gu(2)
10 anchors.right: parent.right
11 anchors.verticalCenter: parent.verticalCenter
12@@ -77,6 +78,7 @@
13 width: parent.width / 3
14 Label {
15 id: swipeBackgroundRightText
16+ objectName: "rightDelete"
17 anchors.left: parent.left
18 anchors.margins: units.gu(2)
19 anchors.verticalCenter: parent.verticalCenter
20
21=== modified file 'music-app.qml'
22--- music-app.qml 2014-08-06 02:13:53 +0000
23+++ music-app.qml 2014-08-06 23:22:40 +0000
24@@ -387,7 +387,7 @@
25 signal collapseSwipeDelete(int index);
26 signal onToolbarShownChanged(bool shown, var currentPage, var currentTab)
27
28- property bool wideAspect: width >= units.gu(70)
29+ property bool wideAspect: width >= units.gu(70) && loadedUI
30 property bool loadedUI: false // property to detect if the UI has finished
31
32 // FUNCTIONS
33
34=== modified file 'tests/autopilot/music_app/emulators.py'
35--- tests/autopilot/music_app/emulators.py 2014-07-24 13:57:08 +0000
36+++ tests/autopilot/music_app/emulators.py 2014-08-06 23:22:40 +0000
37@@ -274,4 +274,4 @@
38 def get_swipedelete_icon(self):
39 swipedelete = self.wait_select_single(
40 "SwipeDelete", direction="swipingRight")
41- return swipedelete.select_many("Icon", name="delete")[1]
42+ return swipedelete.select_single("Label", objectName="leftDelete")

Subscribers

People subscribed via source and target branches

to status/vote changes: