summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-02-09 02:40:03 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-02-09 02:40:03 (GMT)
commit9a3b5988a089429e016334a434023bc5c992f0ed (patch)
treefb423422e0a12f42e5a58783355d405f9886ec9b /tests
parent2f653cc06b97b443b9832d0121dbf92b35dd32c2 (diff)
downloadQt-9a3b5988a089429e016334a434023bc5c992f0ed.zip
Qt-9a3b5988a089429e016334a434023bc5c992f0ed.tar.gz
Qt-9a3b5988a089429e016334a434023bc5c992f0ed.tar.bz2
Reproduce bug.
Task-number: QTBUG-6203
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp4
1 files changed, 4 insertions, 0 deletions
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 } ] } }"
<< "";