diff options
author | David Faure <david.faure@kdab.com> | 2019-05-31 14:20:07 +0200 |
---|---|---|
committer | David Faure <david.faure@kdab.com> | 2019-05-31 14:21:47 +0200 |
commit | 677d336def1686d0d6d8f6d55bf8e2686ed27e07 (patch) | |
tree | 4dac403fa1d1db32960445cfa2ac91c316959039 /tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | |
parent | 6c76ee30ce1662ca8f8368de5ebd1e6bcfdf0d9e (diff) |
tst_qqmlecmascript: add expected warning
Change-Id: I6b5cebb75ceeed6664a5d239ee8ce66b171f2667
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp index 72a524ece5..5ae9a6b038 100644 --- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp +++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp @@ -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(); |