on xenial help sign in
Remove the activity indicator from tests
d051ca1Michał Sawicz
tests/utils/modules/Unity/Test/UnityTestCase.qml+16−6
@@ -23,12 +23,22 @@ TestCase {
23 id: testCase
23 id: testCase
24 TestUtil {id:util}
24 TestUtil {id:util}
25
25
26− ActivityIndicator {
26+ // This is needed for waitForRendering calls to return
27− visible: testCase.running
27+ // if the watched element already got rendered
28− anchors.centerIn: parent
28+ Rectangle {
29− Component.onCompleted: parent = testCase.parent
29+ width: units.gu(1)
30− z: 100
30+ height: width
31+ parent: testCase.parent
32+ border { width: units.dp(1); color: "black" }
33+ opacity: 0.6
34+
35+ RotationAnimation on rotation {
31− running: visible
36+ running: true
37+ from: 0
38+ to: 360
39+ loops: Animation.Infinite
40+ duration: 1000
41+ }
32 }
42 }
33
43
34 // Fake implementation to be provided to items under test
44 // Fake implementation to be provided to items under test