diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-06-13 10:17:07 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@digia.com> | 2013-06-13 14:12:49 +0200 |
commit | e65a6be2c79f706bd1ba0153c3ea0cd5fde43703 (patch) | |
tree | b3ef163cb2eaba643779039d0ad8f065b90ab2ee /tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | |
parent | 7281cd44dcf538424acd58297801a79835f0cdfe (diff) |
Cosmetic: Silence the with statement warnings, in addition to the XFAIL
Change-Id: I8a89acc93f1446a5ef6cb8441a8ad9b48c4fb752
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp')
-rw-r--r-- | tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp index ca7c95ca24..325deba0ee 100644 --- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp +++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp @@ -6699,7 +6699,13 @@ void tst_qqmlecmascript::switchStatement() void tst_qqmlecmascript::withStatement() { { - QQmlComponent component(&engine, testFileUrl("withStatement.1.qml")); + QUrl url = testFileUrl("withStatement.1.qml"); + QString warning = url.toString() + ":12:1: 'with' statement is not allowed in strict mode"; + QTest::ignoreMessage(QtWarningMsg, warning.toLatin1().constData()); + warning = url.toString() + ":12:12: Unable to assign [undefined] to int"; + QTest::ignoreMessage(QtWarningMsg, warning.toLatin1().constData()); + + QQmlComponent component(&engine, url); MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create()); QVERIFY(object != 0); |