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