aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp
diff options
context:
space:
mode:
authorAurindam Jana <aurindam.jana@nokia.com>2011-11-18 16:41:08 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-24 11:40:07 +0100
commit43b2d685fbbefd7eb89e4e84af02bc4a4aea86e0 (patch)
treefaac8b3a6ad548626a99a7430b4d2e8d958c1e6a /tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp
parent5aad0f5da641d778958a4127f33cbd9943e6a6c5 (diff)
ConsoleAPI: Use environment variable
Show detailed information, such as file and line number, for console.log, console.debug and print when the environment variable QML_CONSOLE_EXTENDED is set. Change-Id: I8f660f58d0fd08971ce9706b4a418ed60f312980 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Diffstat (limited to 'tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp')
-rw-r--r--tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp b/tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp
index 34b8e102ee..515c8fa918 100644
--- a/tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp
+++ b/tests/auto/declarative/qdeclarativeanimations/tst_qdeclarativeanimations.cpp
@@ -806,11 +806,9 @@ void tst_qdeclarativeanimations::attached()
{
QDeclarativeEngine engine;
- QUrl url(QUrl::fromLocalFile(TESTDATA("attached.qml")));
- QDeclarativeComponent c(&engine, url);
- QString messageFormat = QString(QLatin1String("%1 (%2:%3)"));
- QTest::ignoreMessage(QtDebugMsg, messageFormat.arg(QLatin1String("off")).arg(url.toString()).arg(24).toLatin1());
- QTest::ignoreMessage(QtDebugMsg, messageFormat.arg(QLatin1String("on")).arg(url.toString()).arg(20).toLatin1());
+ QDeclarativeComponent c(&engine, QUrl::fromLocalFile(TESTDATA("attached.qml")));
+ QTest::ignoreMessage(QtDebugMsg, "off");
+ QTest::ignoreMessage(QtDebugMsg, "on");
QQuickRectangle *rect = qobject_cast<QQuickRectangle*>(c.create());
QVERIFY(rect);
}