on xenial help sign in
Add readonly 'running' property to EdgeDemoOverlay to try to make tests more reliable
commitaef1362df71bc7b9b709ac22a9211c5c83c96c5d authorMichael Terry <michael.terry@canonical.com> dateTue 27 Aug 2013, 09:46 (13 years ago) parent1e1ea54
2 files changed+8−5
Components/EdgeDemoOverlay.qml+5 tests/qmltests/Components/tst_EdgeDemoOverlay.qml+3−5
Components/EdgeDemoOverlay.qml+5
@@ -53,6 +53,11 @@ Showable {
5353 */
5454 property alias paused: wholeAnimation.paused
5555
56+ /*
57+ * Whether animations are running.
58+ */
59+ readonly property alias running: wholeAnimation.running
60+
5661 signal skip()
5762
5863 function doSkip() {
tests/qmltests/Components/tst_EdgeDemoOverlay.qml+3−5
@@ -92,13 +92,11 @@ Item {
9292 when: windowShown
9393
9494 function test_animations() {
95− var rightAnim = findChild(right, "wholeAnimation")
96− compare(rightAnim.running, true)
95+ compare(right.running, true)
9796
98− var leftAnim = findChild(left, "wholeAnimation")
99− compare(leftAnim.running, false)
97+ compare(left.running, false)
10098 left.available = true
101− compare(leftAnim.running, true)
99+ compare(left.running, true)
102100 }
103101
104102 function test_skip() {