diff options
author | Aurindam Jana <aurindam.jana@nokia.com> | 2011-11-18 16:41:08 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-24 11:40:07 +0100 |
commit | 43b2d685fbbefd7eb89e4e84af02bc4a4aea86e0 (patch) | |
tree | faac8b3a6ad548626a99a7430b4d2e8d958c1e6a /tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp | |
parent | 5aad0f5da641d778958a4127f33cbd9943e6a6c5 (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/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp')
-rw-r--r-- | tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp b/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp index 1e0f1a86ca..426f9663d2 100644 --- a/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp +++ b/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp @@ -1595,8 +1595,8 @@ void tst_qdeclarativeecmascript::shutdownErrors() void tst_qdeclarativeecmascript::compositePropertyType() { QDeclarativeComponent component(&engine, TEST_FILE("compositePropertyType.qml")); - QString messageFormat = QString(QLatin1String("hello world (%1:%2)")).arg(TEST_FILE("compositePropertyType.qml").toString()).arg(7); - QTest::ignoreMessage(QtDebugMsg, qPrintable(messageFormat)); + + QTest::ignoreMessage(QtDebugMsg, "hello world"); QObject *object = qobject_cast<QObject *>(component.create()); delete object; } @@ -4392,8 +4392,7 @@ void tst_qdeclarativeecmascript::qtbug_9792() MyQmlObject *object = qobject_cast<MyQmlObject*>(component.create(context)); QVERIFY(object != 0); - QString message = QString(QLatin1String("Hello world! (%1:%2)")).arg(TEST_FILE("qtbug_9792.qml").toString()).arg(4); - QTest::ignoreMessage(QtDebugMsg, qPrintable(message)); + QTest::ignoreMessage(QtDebugMsg, "Hello world!"); object->basicSignal(); delete context; |