Change-Id: Ib6f58c2d7ee5e4f03fcc755d2290bdf204e3aa61
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
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>)));