diff options
author | Christian Strømme <christian.stromme@qt.io> | 2018-03-21 13:40:00 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-03-26 14:41:06 +0000 |
commit | e3843ccc0a31f3ad7c3ec61b2daac1c0b7eb2c9c (patch) | |
tree | f2217445bffdbd253a8b1da8dc652d57ed37b2e5 /tests | |
parent | cffef19289e73fd67409716def401069bb63ef65 (diff) |
Fix regression in how end-of-slide is handled
Fixes the issue that the setPositionChanged would report that the slide
finished while it was not in playing state.
Task-number: QT3DS-1325
Change-Id: I7e73c4caf75bba4b031380ecc83604246c6ddb21
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/slideplayer/tst_q3dsslideplayer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/slideplayer/tst_q3dsslideplayer.cpp b/tests/auto/slideplayer/tst_q3dsslideplayer.cpp index 15a62b2..5364db0 100644 --- a/tests/auto/slideplayer/tst_q3dsslideplayer.cpp +++ b/tests/auto/slideplayer/tst_q3dsslideplayer.cpp @@ -193,8 +193,8 @@ void tst_Q3DSSlidePlayer::tst_playModes() // Stopped -> playing -> stopped QCOMPARE(stateChangeSpy.count(), 2); - // StopAtEnd -> PlayToNext -> StopAtEnd - QCOMPARE(slideChangedSpy.count(), 2); + // PlayToNext -> StopAtEnd + QCOMPARE(slideChangedSpy.count(), 1); QCOMPARE(player->slideDeck()->currentSlide(), m_stopAtEnd); // STOP AT END |