Updated integration test to check initial volume.
Change-Id: Ida1eb24a6e09d31048722299104616fbaa26dffa Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com> Reviewed-by: Michael Goddard <michael.goddard@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
2acb594de2
commit
d6536f6583
@@ -77,6 +77,7 @@ private slots:
|
||||
void volumeAndMuted();
|
||||
void volumeAcrossFiles_data();
|
||||
void volumeAcrossFiles();
|
||||
void initialVolume();
|
||||
void seekPauseSeek();
|
||||
void probes();
|
||||
void playlist();
|
||||
@@ -535,6 +536,28 @@ void tst_QMediaPlayerBackend::volumeAcrossFiles()
|
||||
QCOMPARE(player.isMuted(), muted);
|
||||
}
|
||||
|
||||
void tst_QMediaPlayerBackend::initialVolume()
|
||||
{
|
||||
{
|
||||
QMediaPlayer player;
|
||||
player.setVolume(1);
|
||||
player.setMedia(localWavFile);
|
||||
QCOMPARE(player.volume(), 1);
|
||||
player.play();
|
||||
QTRY_COMPARE(player.mediaStatus(), QMediaPlayer::EndOfMedia);
|
||||
QCOMPARE(player.volume(), 1);
|
||||
}
|
||||
|
||||
{
|
||||
QMediaPlayer player;
|
||||
player.setMedia(localWavFile);
|
||||
QCOMPARE(player.volume(), 100);
|
||||
player.play();
|
||||
QTRY_COMPARE(player.mediaStatus(), QMediaPlayer::EndOfMedia);
|
||||
QCOMPARE(player.volume(), 100);
|
||||
}
|
||||
}
|
||||
|
||||
void tst_QMediaPlayerBackend::seekPauseSeek()
|
||||
{
|
||||
if (localVideoFile.isNull())
|
||||
|
||||
Reference in New Issue
Block a user