From 9a3b5988a089429e016334a434023bc5c992f0ed Mon Sep 17 00:00:00 2001 From: Warwick Allison Date: Tue, 9 Feb 2010 12:40:03 +1000 Subject: Reproduce bug. Task-number: QTBUG-6203 --- tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp b/tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp index 1b05c0a..9d072dd 100644 --- a/tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp +++ b/tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp @@ -244,6 +244,10 @@ void tst_QmlListModel::error_data() << "import Qt 4.6\nListModel { ListElement { foo:123 } }" << ""; + QTest::newRow("bindings not allowed in ListElement") + << "import Qt 4.6\nRectangle { id: rect; ListModel { ListElement { foo: rect.color } } }" + << "QTBUG-6203 ListElement should not allow binding its data to something"; + QTest::newRow("random object list properties allowed in ListElement") << "import Qt 4.6\nListModel { ListElement { foo: [ ListElement { bar: 123 } ] } }" << ""; -- cgit v0.12 From 3387c33fca6e518a5e08a48780f6268aeface839 Mon Sep 17 00:00:00 2001 From: Leonardo Sobral Cunha Date: Wed, 10 Feb 2010 12:43:52 +0000 Subject: Add expected fail and created QTBUG-8072 for qml animation auto-test --- tests/auto/declarative/animations/tst_animations.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/declarative/animations/tst_animations.cpp b/tests/auto/declarative/animations/tst_animations.cpp index 239c344..5026f6f 100644 --- a/tests/auto/declarative/animations/tst_animations.cpp +++ b/tests/auto/declarative/animations/tst_animations.cpp @@ -424,6 +424,7 @@ void tst_animations::properties() QmlGraphicsRectangle *myRect = rect->findChild("TheRect"); QVERIFY(myRect); QTest::qWait(waitDuration); + QEXPECT_FAIL("", "QTBUG-8072", Continue); QTIMED_COMPARE(myRect->x(),qreal(100)); QTIMED_COMPARE(myRect->y(),qreal(100)); } -- cgit v0.12