From: Simon Hausmann Date: Wed, 12 Jun 2013 13:58:04 +0000 (+0200) Subject: Mark test using with statement as expected failure X-Git-Tag: upstream/5.2.1~669^2~248 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8f92eef13b30a6ddf3a6e5dbf1a89b5e24cfdc7;p=platform%2Fupstream%2Fqtdeclarative.git 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 --- 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); } }