From b8f92eef13b30a6ddf3a6e5dbf1a89b5e24cfdc7 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 12 Jun 2013 15:58:04 +0200 Subject: [PATCH] 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 --- tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp b/tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp index 0d202da..3076c7a 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(component.create()); QVERIFY(object != 0); + QEXPECT_FAIL("", "The with statement is not allowed in strict mode", Abort); QCOMPARE(object->value(), 123); } } -- 2.7.4