Merge lp:~saviq/unity8/activity-workaround into lp:unity8

Proposed by Michał Sawicz
Status: Merged
Approved by: Daniel d'Andrada
Approved revision: 1659
Merged at revision: 1687
Proposed branch: lp:~saviq/unity8/activity-workaround
Merge into: lp:unity8
Diff against target: 32 lines (+16/-6)
1 file modified
tests/utils/modules/Unity/Test/UnityTestCase.qml (+16/-6)
To merge this branch: bzr merge lp:~saviq/unity8/activity-workaround
Reviewer Review Type Date Requested Status
Daniel d'Andrada (community) Approve
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+252897@code.launchpad.net

Commit message

Remove the activity indicator from tests

Now that its animation runs in the render thread instead of in the main (GUI) one.

This fixes the problem were qml tests would take 100% CPU and fail at some point.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Daniel d'Andrada (dandrader) wrote :

Code looks ok and fixes the issue, but it contains spurious tags!

"""
Deleted activity-workaround//8.01.1+15.04.20141112.1~rtm-0ubuntu1
Deleted activity-workaround//8.01.1+15.04.20141111~rtm-0ubuntu1
Deleted activity-workaround//8.01.1+14.10.20141105.2~rtm-0ubuntu1
Deleted activity-workaround//8.02+15.04.20150113~rtm-0ubuntu1
Deleted activity-workaround//8.02+15.04.20141218~rtm-0ubuntu1
Deleted activity-workaround//8.02+15.04.20141216~rtm-0ubuntu1
Deleted activity-workaround//8.00+14.10.20141015.4~rtm-0ubuntu1
Deleted activity-workaround//8.01.1+15.04.20141208~rtm-0ubuntu1
Deleted activity-workaround//8.02+15.04.20150107~rtm-0ubuntu1
Deleted activity-workaround//8.00+14.10.20141017-0ubuntu1
"""

review: Needs Fixing
Revision history for this message
Michał Sawicz (saviq) wrote :

> Code looks ok and fixes the issue, but it contains spurious tags!

Oh noes! thanks for checking.

Cleaned.

Revision history for this message
Daniel d'Andrada (dandrader) wrote :

good to go

review: Approve
Revision history for this message
Daniel d'Andrada (dandrader) wrote :

* Did you perform an exploratory manual test run of the code change and any related functionality?
Not applicable

* Did CI run pass? If not, please explain why.
Solves the qmltest issues it's supposed to fix

* Did you make sure that the branch does not contain spurious tags?
Yes.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/utils/modules/Unity/Test/UnityTestCase.qml'
2--- tests/utils/modules/Unity/Test/UnityTestCase.qml 2015-02-17 15:06:33 +0000
3+++ tests/utils/modules/Unity/Test/UnityTestCase.qml 2015-03-13 15:21:35 +0000
4@@ -23,12 +23,22 @@
5 id: testCase
6 TestUtil {id:util}
7
8- ActivityIndicator {
9- visible: testCase.running
10- anchors.centerIn: parent
11- Component.onCompleted: parent = testCase.parent
12- z: 100
13- running: visible
14+ // This is needed for waitForRendering calls to return
15+ // if the watched element already got rendered
16+ Rectangle {
17+ width: units.gu(1)
18+ height: width
19+ parent: testCase.parent
20+ border { width: units.dp(1); color: "black" }
21+ opacity: 0.6
22+
23+ RotationAnimation on rotation {
24+ running: true
25+ from: 0
26+ to: 360
27+ loops: Animation.Infinite
28+ duration: 1000
29+ }
30 }
31
32 // Fake implementation to be provided to items under test

Subscribers

People subscribed via source and target branches