From 02f2cef57f2bd3dff97a7cd004720715f48dfeeb Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Sat, 15 Jun 2013 22:43:58 +0200 Subject: [PATCH] Adjust expected error message for qqmlecmascript::qtbug_22843 Change-Id: Ib6f58c2d7ee5e4f03fcc755d2290bdf204e3aa61 Reviewed-by: Lars Knoll --- tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp index fd8060d..08fafa4 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"); QSignalSpy warningsSpy(&engine, SIGNAL(warnings(QList))); -- 2.7.4