on xenial help sign in
Add readonly 'running' property to EdgeDemoOverlay to try to make tests more reliable
aef1362Michael Terry
Components/EdgeDemoOverlay.qml+5
@@ -53,6 +53,11 @@ Showable {
53 */
53 */
54 property alias paused: wholeAnimation.paused
54 property alias paused: wholeAnimation.paused
55
55
56+ /*
57+ * Whether animations are running.
58+ */
59+ readonly property alias running: wholeAnimation.running
60+
56 signal skip()
61 signal skip()
57
62
58 function doSkip() {
63 function doSkip() {
tests/qmltests/Components/tst_EdgeDemoOverlay.qml+3−5
@@ -92,13 +92,11 @@ Item {
92 when: windowShown
92 when: windowShown
93
93
94 function test_animations() {
94 function test_animations() {
95− var rightAnim = findChild(right, "wholeAnimation")
96− compare(rightAnim.running, true)
95+ compare(right.running, true)
97
96
98− var leftAnim = findChild(left, "wholeAnimation")
99− compare(leftAnim.running, false)
97+ compare(left.running, false)
100 left.available = true
98 left.available = true
101− compare(leftAnim.running, true)
99+ compare(left.running, true)
102 }
100 }
103
101
104 function test_skip() {
102 function test_skip() {