Ignore expected warning
authorAaron Kennedy <aaron.kennedy@nokia.com>
Thu, 1 Dec 2011 12:39:51 +0000 (12:39 +0000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 1 Dec 2011 12:41:01 +0000 (13:41 +0100)
Change-Id: I09696b9d522fd791a4a33f812bb3c858bfd692ff
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>

tests/auto/declarative/qdeclarativebinding/tst_qdeclarativebinding.cpp

index ea05963..091a87b 100644 (file)
@@ -165,6 +165,8 @@ void tst_qdeclarativebinding::restoreBindingWithLoop()
     QCOMPARE(myItem->x(), qreal(88));
 
     //original binding restored
+    QString warning = c.url().toString() + QLatin1String(":9:5: QML Rectangle: Binding loop detected for property \"x\"");
+    QTest::ignoreMessage(QtWarningMsg, qPrintable(warning));
     rect->setProperty("activateBinding", false);
     QCOMPARE(myItem->x(), qreal(88 + 100)); //if loop handling changes this could be 90 + 100