diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-11-23 04:26:49 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-11-23 04:26:49 (GMT) |
commit | 3c4df26a8d184b728395c8aad26b05626176b7b5 (patch) | |
tree | 8c5a16a3822f61fbeb0b2405009aeab480ffe98b /tests/auto/declarative/qmlecmascript | |
parent | a8549cfee8b6ec393dcea6314e6ac7d6c102dc07 (diff) | |
download | Qt-3c4df26a8d184b728395c8aad26b05626176b7b5.zip Qt-3c4df26a8d184b728395c8aad26b05626176b7b5.tar.gz Qt-3c4df26a8d184b728395c8aad26b05626176b7b5.tar.bz2 |
Use console.log, not print.
Diffstat (limited to 'tests/auto/declarative/qmlecmascript')
-rw-r--r-- | tests/auto/declarative/qmlecmascript/data/scriptErrors.qml | 2 | ||||
-rw-r--r-- | tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/declarative/qmlecmascript/data/scriptErrors.qml b/tests/auto/declarative/qmlecmascript/data/scriptErrors.qml index ff22990..9d99b41 100644 --- a/tests/auto/declarative/qmlecmascript/data/scriptErrors.qml +++ b/tests/auto/declarative/qmlecmascript/data/scriptErrors.qml @@ -9,7 +9,7 @@ MyQmlObject { property int x: undefinedObject property int y: (a.value, undefinedObject) - onBasicSignal: { print(a.value); } + onBasicSignal: { console.log(a.value); } } diff --git a/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp b/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp index 983ddd0..fe3ae6b 100644 --- a/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp +++ b/tests/auto/declarative/qmlecmascript/tst_qmlecmascript.cpp @@ -218,7 +218,7 @@ void tst_qmlecmascript::basicExpressions_data() QTest::addColumn<QVariant>("result"); QTest::addColumn<bool>("nest"); - QTest::newRow("Syntax error (self test)") << "{print({'a':1'}.a)}" << QVariant() << false; + QTest::newRow("Syntax error (self test)") << "{console.log({'a':1'}.a)}" << QVariant() << false; QTest::newRow("Context property") << "a" << QVariant(1944) << false; QTest::newRow("Context property") << "a" << QVariant(1944) << true; QTest::newRow("Context property expression") << "a * 2" << QVariant(3888) << false; |