summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-11-23 04:26:49 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-11-23 04:26:49 (GMT)
commit3c4df26a8d184b728395c8aad26b05626176b7b5 (patch)
tree8c5a16a3822f61fbeb0b2405009aeab480ffe98b /tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
parenta8549cfee8b6ec393dcea6314e6ac7d6c102dc07 (diff)
downloadQt-3c4df26a8d184b728395c8aad26b05626176b7b5.zip
Qt-3c4df26a8d184b728395c8aad26b05626176b7b5.tar.gz
Qt-3c4df26a8d184b728395c8aad26b05626176b7b5.tar.bz2
Use console.log, not print.
Diffstat (limited to 'tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp')
-rw-r--r--tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp b/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
index 892d2eb..685beaf 100644
--- a/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
+++ b/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
@@ -606,6 +606,8 @@ void tst_qmllanguage::dynamicObjectProperties()
// Tests the declaration of dynamic signals and slots
void tst_qmllanguage::dynamicSignalsAndSlots()
{
+ QTest::ignoreMessage(QtDebugMsg, "1921");
+
QmlComponent component(&engine, TEST_FILE("dynamicSignalsAndSlots.qml"));
VERIFY_ERRORS(0);
QObject *object = component.create();
@@ -956,7 +958,7 @@ void tst_qmllanguage::scriptString()
QCOMPARE(object->scriptProperty().context(), qmlContext(object));
QVERIFY(object->grouped() != 0);
- QCOMPARE(object->grouped()->script().script(), QString("print(1921)"));
+ QCOMPARE(object->grouped()->script().script(), QString("console.log(1921)"));
QCOMPARE(object->grouped()->script().scopeObject(), object);
QCOMPARE(object->grouped()->script().context(), qmlContext(object));
}