diff options
author | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-04-14 15:15:32 (GMT) |
---|---|---|
committer | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-04-15 05:39:44 (GMT) |
commit | 240cf56a6490bc05339cc05457c8bab3b5cab66c (patch) | |
tree | 7f6441a4ffb29c601d08a7680f05fd0b2fea2e9b /tests/auto/mediaobject | |
parent | 0d12963c85fc116cd7283cd16ca0524f086f9d09 (diff) | |
download | Qt-240cf56a6490bc05339cc05457c8bab3b5cab66c.zip Qt-240cf56a6490bc05339cc05457c8bab3b5cab66c.tar.gz Qt-240cf56a6490bc05339cc05457c8bab3b5cab66c.tar.bz2 |
tst_mediaobject: Removed non-portable escape codes from output
Test step was outputting ANSI escape codes in order to highlight
certain text. These codes are not natively supported by Windows
consoles, resulting in raw escape codes appearing in the output.
Reviewed-by: Frans Englich
Diffstat (limited to 'tests/auto/mediaobject')
-rw-r--r-- | tests/auto/mediaobject/tst_mediaobject.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/auto/mediaobject/tst_mediaobject.cpp b/tests/auto/mediaobject/tst_mediaobject.cpp index 7f9f57d..5328f63 100644 --- a/tests/auto/mediaobject/tst_mediaobject.cpp +++ b/tests/auto/mediaobject/tst_mediaobject.cpp @@ -193,16 +193,10 @@ static qint32 castQVariantToInt32(const QVariant &variant) return *reinterpret_cast<const qint32 *>(variant.constData()); } -static const char *const red = "\033[0;31m"; -static const char *const normal = "\033[0m"; - void tst_MediaObject::stateChanged(Phonon::State newstate, Phonon::State oldstate) { - if (newstate == Phonon::ErrorState) { - QWARN(QByteArray(QByteArray(red) + ".......................................................... ") + QByteArray(QTest::toString(oldstate)) + " to " + QByteArray(QTest::toString(newstate)) + normal); - } else { - //qDebug() << ".........................................................." << cyan << QTest::toString(oldstate) << "to" << QTest::toString(newstate) << normal; - } + if (newstate == Phonon::ErrorState) + QWARN(QByteArray(QByteArray(QTest::toString(oldstate)) + " to " + QByteArray(QTest::toString(newstate)))); } void tst_MediaObject::testPlayFromResource() |