Mark test using with statement as expected failure
authorSimon Hausmann <simon.hausmann@digia.com>
Wed, 12 Jun 2013 13:58:04 +0000 (15:58 +0200)
committerLars Knoll <lars.knoll@digia.com>
Thu, 13 Jun 2013 06:51:03 +0000 (08:51 +0200)
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>
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp

index 0d202da..3076c7a 100644 (file)
@@ -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);
     }
 }