Fix autotests expecting a trailing whitespace for qDebug stream
The behavior of QDebug was fixed in qtbase. Update autotests accordingly. Change-Id: I0bbd1b52958c24710f877224158fa30f082941b8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
3da68ff8f2
commit
41d41ceb4a
@@ -323,7 +323,7 @@ void tst_QAudioFormat::debugOperator_data()
|
||||
|
||||
// A small sampling
|
||||
QAudioFormat f;
|
||||
QTest::newRow("plain") << f << QString::fromLatin1("QAudioFormat(-1Hz, -1bit, channelCount=-1, sampleType=Unknown, byteOrder=LittleEndian, codec=\"\") ");
|
||||
QTest::newRow("plain") << f << QString::fromLatin1("QAudioFormat(-1Hz, -1bit, channelCount=-1, sampleType=Unknown, byteOrder=LittleEndian, codec=\"\")");
|
||||
|
||||
f.setSampleRate(22050);
|
||||
f.setByteOrder(QAudioFormat::LittleEndian);
|
||||
@@ -331,16 +331,16 @@ void tst_QAudioFormat::debugOperator_data()
|
||||
f.setCodec("audio/pcm");
|
||||
f.setSampleType(QAudioFormat::Float);
|
||||
|
||||
QTest::newRow("float") << f << QString::fromLatin1("QAudioFormat(22050Hz, -1bit, channelCount=4, sampleType=Float, byteOrder=LittleEndian, codec=\"audio/pcm\") ");
|
||||
QTest::newRow("float") << f << QString::fromLatin1("QAudioFormat(22050Hz, -1bit, channelCount=4, sampleType=Float, byteOrder=LittleEndian, codec=\"audio/pcm\")");
|
||||
|
||||
f.setSampleType(QAudioFormat::UnSignedInt);
|
||||
QTest::newRow("unsigned") << f << QString::fromLatin1("QAudioFormat(22050Hz, -1bit, channelCount=4, sampleType=UnSignedInt, byteOrder=LittleEndian, codec=\"audio/pcm\") ");
|
||||
QTest::newRow("unsigned") << f << QString::fromLatin1("QAudioFormat(22050Hz, -1bit, channelCount=4, sampleType=UnSignedInt, byteOrder=LittleEndian, codec=\"audio/pcm\")");
|
||||
|
||||
f.setSampleRate(44100);
|
||||
QTest::newRow("44.1 unsigned") << f << QString::fromLatin1("QAudioFormat(44100Hz, -1bit, channelCount=4, sampleType=UnSignedInt, byteOrder=LittleEndian, codec=\"audio/pcm\") ");
|
||||
QTest::newRow("44.1 unsigned") << f << QString::fromLatin1("QAudioFormat(44100Hz, -1bit, channelCount=4, sampleType=UnSignedInt, byteOrder=LittleEndian, codec=\"audio/pcm\")");
|
||||
|
||||
f.setByteOrder(QAudioFormat::BigEndian);
|
||||
QTest::newRow("44.1 big unsigned") << f << QString::fromLatin1("QAudioFormat(44100Hz, -1bit, channelCount=4, sampleType=UnSignedInt, byteOrder=BigEndian, codec=\"audio/pcm\") ");
|
||||
QTest::newRow("44.1 big unsigned") << f << QString::fromLatin1("QAudioFormat(44100Hz, -1bit, channelCount=4, sampleType=UnSignedInt, byteOrder=BigEndian, codec=\"audio/pcm\")");
|
||||
}
|
||||
|
||||
void tst_QAudioFormat::debugOperator()
|
||||
|
||||
@@ -1125,21 +1125,21 @@ void tst_QCamera::testSetVideoOutputDestruction()
|
||||
|
||||
void tst_QCamera::testEnumDebug()
|
||||
{
|
||||
QTest::ignoreMessage(QtDebugMsg, "QCamera::ActiveState ");
|
||||
QTest::ignoreMessage(QtDebugMsg, "QCamera::ActiveState");
|
||||
qDebug() << QCamera::ActiveState;
|
||||
QTest::ignoreMessage(QtDebugMsg, "QCamera::ActiveStatus ");
|
||||
QTest::ignoreMessage(QtDebugMsg, "QCamera::ActiveStatus");
|
||||
qDebug() << QCamera::ActiveStatus;
|
||||
QTest::ignoreMessage(QtDebugMsg, "QCamera::CaptureVideo ");
|
||||
QTest::ignoreMessage(QtDebugMsg, "QCamera::CaptureVideo");
|
||||
qDebug() << QCamera::CaptureVideo;
|
||||
QTest::ignoreMessage(QtDebugMsg, "QCamera::CameraError ");
|
||||
QTest::ignoreMessage(QtDebugMsg, "QCamera::CameraError");
|
||||
qDebug() << QCamera::CameraError;
|
||||
QTest::ignoreMessage(QtDebugMsg, "QCamera::Unlocked ");
|
||||
QTest::ignoreMessage(QtDebugMsg, "QCamera::Unlocked");
|
||||
qDebug() << QCamera::Unlocked;
|
||||
QTest::ignoreMessage(QtDebugMsg, "QCamera::LockAcquired ");
|
||||
QTest::ignoreMessage(QtDebugMsg, "QCamera::LockAcquired");
|
||||
qDebug() << QCamera::LockAcquired;
|
||||
QTest::ignoreMessage(QtDebugMsg, "QCamera::NoLock ");
|
||||
QTest::ignoreMessage(QtDebugMsg, "QCamera::NoLock");
|
||||
qDebug() << QCamera::NoLock;
|
||||
QTest::ignoreMessage(QtDebugMsg, "QCamera::LockExposure ");
|
||||
QTest::ignoreMessage(QtDebugMsg, "QCamera::LockExposure");
|
||||
qDebug() << QCamera::LockExposure;
|
||||
}
|
||||
|
||||
|
||||
@@ -1106,11 +1106,11 @@ void tst_QMediaPlayer::testPositionPropertyWatch()
|
||||
|
||||
void tst_QMediaPlayer::debugEnums()
|
||||
{
|
||||
QTest::ignoreMessage(QtDebugMsg, "QMediaPlayer::PlayingState ");
|
||||
QTest::ignoreMessage(QtDebugMsg, "QMediaPlayer::PlayingState");
|
||||
qDebug() << QMediaPlayer::PlayingState;
|
||||
QTest::ignoreMessage(QtDebugMsg, "QMediaPlayer::NoMedia ");
|
||||
QTest::ignoreMessage(QtDebugMsg, "QMediaPlayer::NoMedia");
|
||||
qDebug() << QMediaPlayer::NoMedia;
|
||||
QTest::ignoreMessage(QtDebugMsg, "QMediaPlayer::NetworkError ");
|
||||
QTest::ignoreMessage(QtDebugMsg, "QMediaPlayer::NetworkError");
|
||||
qDebug() << QMediaPlayer::NetworkError;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user