summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-01-11 06:42:29 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-01-11 06:42:29 (GMT)
commitac8d5043426655e615731ff05ff7631e8ca1c8a2 (patch)
treeacc8ac5181f7c40afbaf4a2445c598744eb1f445
parent2ec9b259f63a7305cf221425049cd728adb84bf2 (diff)
downloadQt-ac8d5043426655e615731ff05ff7631e8ca1c8a2.zip
Qt-ac8d5043426655e615731ff05ff7631e8ca1c8a2.tar.gz
Qt-ac8d5043426655e615731ff05ff7631e8ca1c8a2.tar.bz2
Ignore expected test warnings
-rw-r--r--tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp b/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
index bf95a54..8fa9576 100644
--- a/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
+++ b/tests/auto/declarative/qmllanguage/tst_qmllanguage.cpp
@@ -706,9 +706,16 @@ void tst_qmllanguage::valueTypes()
{
QmlComponent component(&engine, TEST_FILE("valueTypes.qml"));
VERIFY_ERRORS(0);
+
+ QString message = QLatin1String("QML MyTypeObject (") + component.url().toString() +
+ QLatin1String(":2:1) Binding loop detected for property \"rectProperty.width\"");
+ QTest::ignoreMessage(QtWarningMsg, qPrintable(message));
+ QTest::ignoreMessage(QtWarningMsg, qPrintable(message));
+
MyTypeObject *object = qobject_cast<MyTypeObject*>(component.create());
QVERIFY(object != 0);
+
QCOMPARE(object->rectProperty(), QRect(10, 11, 12, 13));
QCOMPARE(object->rectProperty2(), QRect(10, 11, 12, 13));
QCOMPARE(object->intProperty(), 10);