aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qquickworkerscript
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2012-03-14 12:51:22 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-14 16:45:30 +0100
commitf91dba12746bb1675bfe3a483288e712a867dd7c (patch)
tree5a1c2bbb0d7f0b0585861cc2b362074cf7466a6f /tests/auto/qml/qquickworkerscript
parenta06936e5037c017248a9eefa9378cebfd6b2f5c1 (diff)
Use the same ReferenceError message wording as V8
Instead of "Can't find variable: foo", use "foo is not defined". This is in preparation of letting V8 throw the exception when a property lookup fails on the QML scope object (needed for QTBUG-24448). Change-Id: I3c747482a8ef138dad9a85530a4f6b5c4c818a03 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Diffstat (limited to 'tests/auto/qml/qquickworkerscript')
-rw-r--r--tests/auto/qml/qquickworkerscript/tst_qquickworkerscript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/qquickworkerscript/tst_qquickworkerscript.cpp b/tests/auto/qml/qquickworkerscript/tst_qquickworkerscript.cpp
index 6569b877fe..2eadc461cf 100644
--- a/tests/auto/qml/qquickworkerscript/tst_qquickworkerscript.cpp
+++ b/tests/auto/qml/qquickworkerscript/tst_qquickworkerscript.cpp
@@ -275,7 +275,7 @@ void tst_QQuickWorkerScript::scriptError_onCall()
QVERIFY(QMetaObject::invokeMethod(worker, "testSend", Q_ARG(QVariant, value)));
QTRY_COMPARE(qquickworkerscript_lastWarning,
- testFileUrl("script_error_onCall.js").toString() + QLatin1String(":4: ReferenceError: Can't find variable: getData"));
+ testFileUrl("script_error_onCall.js").toString() + QLatin1String(":4: ReferenceError: getData is not defined"));
qInstallMsgHandler(previousMsgHandler);
qApp->processEvents();