summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorbigbearzhu <jun.5.zhu@nokia.com>2012-06-26 16:06:39 +1000
committerQt by Nokia <qt-info@nokia.com>2012-06-27 08:12:04 +0200
commitf3f6b2d7dbdf019a0ccfe8c2f72f882d6337173a (patch)
treef547d48c09e1934236ace004824d837e6863c946 /tests
parent9de7ba79ed52c5395f0e455592ef580be26d640f (diff)
Fixed timeout on waiting for positionChanged event.
Change-Id: I894af066073f601e5838dbd47eb92da516c04544 Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/unit/qdeclarativeaudio/tst_qdeclarativeaudio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/unit/qdeclarativeaudio/tst_qdeclarativeaudio.cpp b/tests/auto/unit/qdeclarativeaudio/tst_qdeclarativeaudio.cpp
index f2d7afca9..f241c8f88 100644
--- a/tests/auto/unit/qdeclarativeaudio/tst_qdeclarativeaudio.cpp
+++ b/tests/auto/unit/qdeclarativeaudio/tst_qdeclarativeaudio.cpp
@@ -634,7 +634,7 @@ void tst_QDeclarativeAudio::position()
connect(&audio, SIGNAL(positionChanged()), &QTestEventLoop::instance(), SLOT(exitLoop()));
provider.playerControl()->updateState(QMediaPlayer::PlayingState);
- QTestEventLoop::instance().enterLoop(1);
+ QTestEventLoop::instance().enterLoop(2);
QVERIFY(spy.count() > 3 && spy.count() < 6); // 4 or 5
provider.playerControl()->updateState(QMediaPlayer::PausedState);
@@ -721,7 +721,7 @@ void tst_QDeclarativeAudio::bufferProgress()
provider.playerControl()->updateMediaStatus(
QMediaPlayer::BufferingMedia, QMediaPlayer::PlayingState);
- QTestEventLoop::instance().enterLoop(1);
+ QTestEventLoop::instance().enterLoop(2);
QVERIFY(spy.count() > 3 && spy.count() < 6); // 4 or 5
provider.playerControl()->updateMediaStatus(QMediaPlayer::BufferedMedia);