diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-11-23 00:08:47 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-11-23 00:08:47 (GMT) |
commit | 99ff19eab317990ae927e42aa5084110ebc1e03a (patch) | |
tree | b00bf74569e3c4d346a83061c89864a669bac60e /tests | |
parent | c3008c1df3017d0b9a4280def69c99be181a3689 (diff) | |
download | Qt-99ff19eab317990ae927e42aa5084110ebc1e03a.zip Qt-99ff19eab317990ae927e42aa5084110ebc1e03a.tar.gz Qt-99ff19eab317990ae927e42aa5084110ebc1e03a.tar.bz2 |
Test setting property when not set before.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp b/tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp index 80efd94..61d0863 100644 --- a/tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp +++ b/tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp @@ -111,6 +111,7 @@ void tst_QmlListModel::dynamic_data() QTest::newRow("setprop3b") << "{append({'foo':123,'bar':456});set(0,'foo',999);get(0).bar}" << 456 << ""; QTest::newRow("setprop4a") << "{set(0,'foo',456)}" << 0 << "QML QmlListModel (unknown location) set: index 0 out of range"; QTest::newRow("setprop4a") << "{append({'foo':123,'bar':456});set(1,'foo',456)}" << 0 << "QML QmlListModel (unknown location) set: index 1 out of range"; + QTest::newRow("setprop5") << "{append({'foo':123,'bar':456});append({'foo':111});set(1,'bar',222);get(1).bar}" << 222 << ""; QTest::newRow("move1a") << "{append({'foo':123});append({'foo':456});move(0,1,1);count}" << 2 << ""; QTest::newRow("move1b") << "{append({'foo':123});append({'foo':456});move(0,1,1);get(0).foo}" << 456 << ""; |