summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVaL Doroshchuk <valentyn.doroshchuk@qt.io>2017-09-29 17:10:32 +0200
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2018-09-06 14:22:11 +0000
commitc5400d31a40847e2905b11759090400653624a94 (patch)
treedf88a6c82d6da8c5c23ecc142de9a73d9a206f54 /tests
parentf844a2acbb7ecc4d7b1776d1d6eeb8feab7044f1 (diff)
Fix Gstreamer plugin to pass tst_QMediaPlayerBackend
- Fixed to provide QMediaPlayer::LoadedMedia media status in case when play -> pause -> stop made. - Fixed default duration -1 -> 0. - Fixed a test because after pause() positionChanged is always emitted. - Enabled the test. - Increased gap between prev and curr position after pause. Task-number: QTBUG-63517 Change-Id: I377f024d0a976f1ce802fe6740a771b7e0f2e8db Reviewed-by: Christian Stromme <christian.stromme@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/integration/qmediaplayerbackend/BLACKLIST1
-rw-r--r--tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp4
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/integration/qmediaplayerbackend/BLACKLIST b/tests/auto/integration/qmediaplayerbackend/BLACKLIST
index 0a88eef9e..c81f6c24f 100644
--- a/tests/auto/integration/qmediaplayerbackend/BLACKLIST
+++ b/tests/auto/integration/qmediaplayerbackend/BLACKLIST
@@ -13,7 +13,6 @@ windows 64bit developer-build
windows 64bit developer-build
[playPauseStop]
-linux
windows 64bit developer-build
[processEOS]
diff --git a/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp b/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp
index b68bc030a..76b791e21 100644
--- a/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp
+++ b/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp
@@ -391,8 +391,8 @@ void tst_QMediaPlayerBackend::playPauseStop()
QTest::qWait(2000);
- QVERIFY(qAbs(player.position() - positionBeforePause) < 100);
- QCOMPARE(positionSpy.count(), 0);
+ QVERIFY(qAbs(player.position() - positionBeforePause) < 150);
+ QCOMPARE(positionSpy.count(), 1);
stateSpy.clear();
statusSpy.clear();