diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-11-23 00:10:46 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-11-23 00:10:46 (GMT) |
commit | 9e5cb8c9e6a8526a26cd6ada9ccec1aba002cf68 (patch) | |
tree | 8aad94e999e916913c28bd9381a5e6183d4d31d4 | |
parent | 99ff19eab317990ae927e42aa5084110ebc1e03a (diff) | |
download | Qt-9e5cb8c9e6a8526a26cd6ada9ccec1aba002cf68.zip Qt-9e5cb8c9e6a8526a26cd6ada9ccec1aba002cf68.tar.gz Qt-9e5cb8c9e6a8526a26cd6ada9ccec1aba002cf68.tar.bz2 |
Test one-past-end setting (not error; same as append).
-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 61d0863..95cf68e 100644 --- a/tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp +++ b/tests/auto/declarative/qmllistmodel/tst_qmllistmodel.cpp @@ -104,6 +104,7 @@ void tst_QmlListModel::dynamic_data() QTest::newRow("set4a") << "{set(0,{'foo':456})}" << 0 << "QML QmlListModel (unknown location) set: index 0 out of range"; QTest::newRow("set5a") << "{append({'foo':123,'bar':456});set(0,123)}" << 0 << "QML QmlListModel (unknown location) set: value is not an object"; QTest::newRow("set5b") << "{append({'foo':123,'bar':456});set(0,[1,2,3])}" << 0 << "QML QmlListModel (unknown location) set: value is not an object"; + QTest::newRow("set6") << "{append({'foo':123});set(1,{'foo':456});count}" << 2 << ""; QTest::newRow("setprop1") << "{append({'foo':123});set(0,'foo',456);count}" << 1 << ""; QTest::newRow("setprop2") << "{append({'foo':123});set(0,'foo',456);get(0).foo}" << 456 << ""; |