aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp
diff options
context:
space:
mode:
authorAurindam Jana <aurindam.jana@nokia.com>2011-11-08 11:39:16 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-11 12:59:02 +0100
commita7f5c93de3f9811eef3f5a19ab6dec83b997e0d6 (patch)
treed2f4a6845b3793eadfa220a9d1a1632b20cd790a /tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp
parent3346a77474e1b21990b049b824d621413ab9b80f (diff)
QV8Engine: Console APIs
Modified functionality for console.log, console.debug. Added script and line information. Added functions console.warn and console.error. Change-Id: Id9f4dce5658a09b00522f8e087caf8f4242f418a 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.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp b/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp
index cccbdb0ccb..492ed739b2 100644
--- a/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp
+++ b/tests/auto/declarative/qdeclarativeecmascript/tst_qdeclarativeecmascript.cpp
@@ -1590,7 +1590,8 @@ void tst_qdeclarativeecmascript::shutdownErrors()
void tst_qdeclarativeecmascript::compositePropertyType()
{
QDeclarativeComponent component(&engine, TEST_FILE("compositePropertyType.qml"));
- QTest::ignoreMessage(QtDebugMsg, "hello world");
+ QString messageFormat = QString(QLatin1String("hello world (%1:%2)")).arg(TEST_FILE("compositePropertyType.qml").toString()).arg(7);
+ QTest::ignoreMessage(QtDebugMsg, qPrintable(messageFormat));
QObject *object = qobject_cast<QObject *>(component.create());
delete object;
}
@@ -4362,7 +4363,8 @@ void tst_qdeclarativeecmascript::qtbug_9792()
MyQmlObject *object = qobject_cast<MyQmlObject*>(component.create(context));
QVERIFY(object != 0);
- QTest::ignoreMessage(QtDebugMsg, "Hello world!");
+ QString message = QString(QLatin1String("Hello world! (%1:%2)")).arg(TEST_FILE("qtbug_9792.qml").toString()).arg(4);
+ QTest::ignoreMessage(QtDebugMsg, qPrintable(message));
object->basicSignal();
delete context;