aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2024-02-12 21:14:41 -0700
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-02-15 13:25:29 +0000
commitd8f70dc335e31f2a401cb5fdcd2bbe113723dee7 (patch)
tree0a75d0baffa3934e5d2ce372f0ca13b48d60b034
parentdcf4fa09f3c4163c6ee5be0762f77f70e8c07394 (diff)
tst_qquickanimatedimage::currentFrame: start in paused state
This test calls setCurrentFrame() and observes the results. It's more reliable if the animation timer is not running. Amends a439a25f468d8c5623f2e0949b55a0c85c850f5f Fixes: QTBUG-122173 Fixes: QTBUG-122111 Change-Id: Ibd42ba47e208f3067d3349d54c272d1ec6886ee1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io> (cherry picked from commit 75e95eba6024956f966011a637897607b8714e46) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit e8901faa0f40d063ac44524e4ebc68f386f96c3d) (cherry picked from commit aba1f597122c0a6c386e690752e8e3ab03368538)
-rw-r--r--tests/auto/quick/qquickanimatedimage/data/currentframe.qml1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickanimatedimage/data/currentframe.qml b/tests/auto/quick/qquickanimatedimage/data/currentframe.qml
index b679da2a99..3c58bdaa4b 100644
--- a/tests/auto/quick/qquickanimatedimage/data/currentframe.qml
+++ b/tests/auto/quick/qquickanimatedimage/data/currentframe.qml
@@ -4,6 +4,7 @@ AnimatedImage {
property int currentFrameChangeCount: 0
property int frameChangeCount: 0
source: "stickman.gif"
+ paused: true
onCurrentFrameChanged: if (currentFrame > 0) ++currentFrameChangeCount;
onFrameChanged: if (currentFrame > 0) ++frameChangeCount;
function scriptedSetCurrentFrame(frame) {