summaryrefslogtreecommitdiffstats
path: root/tests/auto/mediaobject
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@nokia.com>2009-04-07 12:55:04 (GMT)
committerThomas Hartmann <Thomas.Hartmann@nokia.com>2009-04-07 12:55:04 (GMT)
commit0ea43e7d28815c133e8029f3d966871a10fef8e0 (patch)
tree67cc234ba3344790e8767271212a8ed58d33fd75 /tests/auto/mediaobject
parentc1c30037292711f0fb05677e77ed2eb2112eca78 (diff)
downloadQt-0ea43e7d28815c133e8029f3d966871a10fef8e0.zip
Qt-0ea43e7d28815c133e8029f3d966871a10fef8e0.tar.gz
Qt-0ea43e7d28815c133e8029f3d966871a10fef8e0.tar.bz2
Fixes: mediaobject autotest for windows ce (waveout)
RevBy: Joerg AutoTest: mediaobject Details: Since our wave files on Windows CE are very short (memory) we actually land up in the PausedState when playback is finished
Diffstat (limited to 'tests/auto/mediaobject')
-rw-r--r--tests/auto/mediaobject/tst_mediaobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/mediaobject/tst_mediaobject.cpp b/tests/auto/mediaobject/tst_mediaobject.cpp
index 96589b7..e0275de 100644
--- a/tests/auto/mediaobject/tst_mediaobject.cpp
+++ b/tests/auto/mediaobject/tst_mediaobject.cpp
@@ -787,7 +787,7 @@ void tst_MediaObject::setMediaAndPlay()
QSignalSpy totalTimeChangedSignalSpy(m_media, SIGNAL(totalTimeChanged(qint64)));
QVERIFY(m_media->currentSource().type() != MediaSource::Invalid);
Phonon::State state = m_media->state();
- QVERIFY(state == Phonon::StoppedState || state == Phonon::PlayingState);
+ QVERIFY(state == Phonon::StoppedState || state == Phonon::PlayingState || Phonon::PausedState);
m_media->setCurrentSource(m_url);
// before calling play() we better make sure that if play() finishes very fast that we don't get
// called again