tst_qqmlecmascript: add expected warning
Change-Id: I6b5cebb75ceeed6664a5d239ee8ce66b171f2667 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
6c76ee30ce
commit
677d336def
|
@ -8270,7 +8270,9 @@ void tst_qqmlecmascript::varPropertyAccessOnObjectWithInvalidContext()
|
|||
void tst_qqmlecmascript::importedScriptsAccessOnObjectWithInvalidContext()
|
||||
{
|
||||
QQmlEngine engine;
|
||||
QQmlComponent component(&engine, testFileUrl("importedScriptsAccessOnObjectWithInvalidContext.qml"));
|
||||
const QUrl url = testFileUrl("importedScriptsAccessOnObjectWithInvalidContext.qml");
|
||||
QTest::ignoreMessage(QtWarningMsg, qPrintable(url.toString() + ":29: TypeError: Cannot read property 'Foo' of null"));
|
||||
QQmlComponent component(&engine, url);
|
||||
QScopedPointer<QObject> obj(component.create());
|
||||
if (obj.isNull())
|
||||
qDebug() << component.errors().first().toString();
|
||||
|
|
Loading…
Reference in New Issue