Reenable value type binding auto removal tests.
authorMichael Brasser <michael.brasser@nokia.com>
Wed, 29 Feb 2012 03:54:16 +0000 (13:54 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 2 Mar 2012 04:16:12 +0000 (05:16 +0100)
Change-Id: I349017bf24f9f2f18024d1257eeaebb348cc8503
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
tests/auto/declarative/qdeclarativevaluetypes/tst_qdeclarativevaluetypes.cpp

index e701efa..15001f7 100644 (file)
@@ -951,7 +951,6 @@ void tst_qdeclarativevaluetypes::autoBindingRemoval()
         delete object;
     }
 
-    /*
     {
         QDeclarativeComponent component(&engine, testFileUrl("autoBindingRemoval.2.qml"));
         MyTypeObject *object = qobject_cast<MyTypeObject *>(component.create());
@@ -976,6 +975,8 @@ void tst_qdeclarativevaluetypes::autoBindingRemoval()
 
     {
         QDeclarativeComponent component(&engine, testFileUrl("autoBindingRemoval.3.qml"));
+        QString warning = component.url().toString() + ":6: Unable to assign [undefined] to QRect";
+        QTest::ignoreMessage(QtWarningMsg, qPrintable(warning));
         MyTypeObject *object = qobject_cast<MyTypeObject *>(component.create());
         QVERIFY(object != 0);
 
@@ -993,7 +994,6 @@ void tst_qdeclarativevaluetypes::autoBindingRemoval()
 
         delete object;
     }
-*/
 }
 
 // Test that property value sources assign to value types