diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-06-15 22:43:58 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2013-06-17 08:00:20 +0200 |
commit | 02f2cef57f2bd3dff97a7cd004720715f48dfeeb (patch) | |
tree | aa8338d8e06f72c2a6f2979587a99feaa0d7cbc5 /tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | |
parent | 6b71ae03f39229cc22739cc6336e93fb348741a5 (diff) |
Adjust expected error message for qqmlecmascript::qtbug_22843
Change-Id: Ib6f58c2d7ee5e4f03fcc755d2290bdf204e3aa61
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp index fd8060d5bf..08fafa4c8a 100644 --- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp +++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp @@ -6517,8 +6517,8 @@ void tst_qqmlecmascript::qtbug_22843() QQmlComponent component(&engine, testFileUrl(fileName)); QString url = component.url().toString(); - QString warning1 = url.left(url.length()-3) + QLatin1String("js:4: SyntaxError: Unexpected token )"); - QString warning2 = url + QLatin1String(":5: TypeError: Object [object Object] has no method 'func'"); + QString warning1 = url.left(url.length()-3) + QLatin1String("js:4:16: Expected token `;'"); + QString warning2 = url + QLatin1String(":5: TypeError: Property 'func' of object NaN is not a function"); qRegisterMetaType<QList<QQmlError> >("QList<QQmlError>"); QSignalSpy warningsSpy(&engine, SIGNAL(warnings(QList<QQmlError>))); |