summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativelistmodel
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-05-13 05:21:38 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-05-13 05:21:38 (GMT)
commit5220b879a19b4fa1e28829e724c1ad12e85566f4 (patch)
tree43143988e6c0affd3223c879d4d118a5e0453fd9 /tests/auto/declarative/qdeclarativelistmodel
parentffdb6fcca3bf8f4cc97f8bfe09a43811c29a7dbe (diff)
downloadQt-5220b879a19b4fa1e28829e724c1ad12e85566f4.zip
Qt-5220b879a19b4fa1e28829e724c1ad12e85566f4.tar.gz
Qt-5220b879a19b4fa1e28829e724c1ad12e85566f4.tar.bz2
ListModel::get() should return undefined if bad index specified
Diffstat (limited to 'tests/auto/declarative/qdeclarativelistmodel')
-rw-r--r--tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp b/tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp
index ec97461..aed4781 100644
--- a/tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp
+++ b/tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp
@@ -282,7 +282,9 @@ void tst_qdeclarativelistmodel::dynamic()
int actual = e.evaluate().toInt();
if (e.hasError())
qDebug() << e.error(); // errors not expected
- QVERIFY(!e.hasError());
+
+ if (QTest::currentDataTag() != QLatin1String("clear3") && QTest::currentDataTag() != QLatin1String("remove3"))
+ QVERIFY(!e.hasError());
QCOMPARE(actual,result);
}