aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2013-06-12 15:58:04 +0200
committerLars Knoll <lars.knoll@digia.com>2013-06-13 08:51:03 +0200
commitb8f92eef13b30a6ddf3a6e5dbf1a89b5e24cfdc7 (patch)
tree380a729c6bb9a3503e56e6fb08ac5902eacf591a /tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
parent1ab8f84dcd5d1da15a10071398f0220f8d754b74 (diff)
Mark test using with statement as expected failure
We run QML bindings in JS strict mode now, where with is not supported Change-Id: I7e1b2747c50f9affdb6b7cfa80287f1f198ad930 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.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
index 0d202da0c2..3076c7a478 100644
--- a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
+++ b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
@@ -6694,6 +6694,7 @@ void tst_qqmlecmascript::withStatement()
MyQmlObject *object = qobject_cast<MyQmlObject *>(component.create());
QVERIFY(object != 0);
+ QEXPECT_FAIL("", "The with statement is not allowed in strict mode", Abort);
QCOMPARE(object->value(), 123);
}
}