summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSamuel Mira <samuel.mira@qt.io>2021-12-10 19:22:48 +0200
committerLars Knoll <lars.knoll@qt.io>2021-12-13 12:00:27 +0000
commitbd72f5f2e1e3b8ebb0de331b591bb2299362f600 (patch)
tree90f2a8be1f067b8d9782716c889a28375811e00b /tests
parent2f616c7453f1d0c1dca0fd8cb07c871bcdda9da9 (diff)
Add QEXPECT_FAIL to android tests regarding isSeekable
isSeekable in Android always returns true. This behavior may change in QTBUG-96952, but from now on expect failure in these tests. Fixes: QTBUG-99129 Pick-to: 6.2 6.3 Change-Id: I422298e57c7942bfcccb91c5e9998446c89a12e7 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp b/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp
index 28470cb1c..0cbee4ba8 100644
--- a/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp
+++ b/tests/auto/integration/qmediaplayerbackend/tst_qmediaplayerbackend.cpp
@@ -1177,6 +1177,9 @@ void tst_QMediaPlayerBackend::isSeekable()
TestVideoSink surface(false);
QMediaPlayer player;
player.setVideoOutput(&surface);
+#ifdef Q_OS_ANDROID
+ QEXPECT_FAIL("", "On Android isSeekable() is always set to true due to QTBUG-96952", Continue);
+#endif
QVERIFY(!player.isSeekable());
player.setSource(localVideoFile);
QTRY_VERIFY(player.isSeekable());
@@ -1190,6 +1193,9 @@ void tst_QMediaPlayerBackend::positionAfterSeek()
TestVideoSink surface(false);
QMediaPlayer player;
player.setVideoOutput(&surface);
+#ifdef Q_OS_ANDROID
+ QEXPECT_FAIL("", "On Android isSeekable() is always set to true due to QTBUG-96952", Continue);
+#endif
QVERIFY(!player.isSeekable());
player.setSource(localVideoFile);
QTRY_COMPARE(player.mediaStatus(), QMediaPlayer::LoadedMedia);
@@ -1214,6 +1220,9 @@ void tst_QMediaPlayerBackend::videoDimensions()
TestVideoSink surface(true);
QMediaPlayer player;
player.setVideoOutput(&surface);
+#ifdef Q_OS_ANDROID
+ QEXPECT_FAIL("", "On Android isSeekable() is always set to true due to QTBUG-96952", Continue);
+#endif
QVERIFY(!player.isSeekable());
player.setSource(localVideoFile);
QTRY_COMPARE(player.mediaStatus(), QMediaPlayer::LoadedMedia);