Adjust expected error message for qqmlecmascript::qtbug_22843
authorSimon Hausmann <simon.hausmann@digia.com>
Sat, 15 Jun 2013 20:43:58 +0000 (22:43 +0200)
committerLars Knoll <lars.knoll@digia.com>
Mon, 17 Jun 2013 06:00:20 +0000 (08:00 +0200)
Change-Id: Ib6f58c2d7ee5e4f03fcc755d2290bdf204e3aa61
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp

index fd8060d..08fafa4 100644 (file)
@@ -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>)));