From c9832df940516d14ce98031b284a3c87d80aaa80 Mon Sep 17 00:00:00 2001 From: Martin Jones Date: Tue, 1 Mar 2011 08:27:17 +1000 Subject: Fix FolderListModel test - set folder to one containing files. Change-Id: I95aabd35c3a33b603aa3b11130ddea5f5c101ce9 Task-number: QTBUG-17775 --- .../qdeclarativefolderlistmodel/tst_qdeclarativefolderlistmodel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/auto/declarative/qdeclarativefolderlistmodel/tst_qdeclarativefolderlistmodel.cpp b/tests/auto/declarative/qdeclarativefolderlistmodel/tst_qdeclarativefolderlistmodel.cpp index 6028333..ffd5d38 100644 --- a/tests/auto/declarative/qdeclarativefolderlistmodel/tst_qdeclarativefolderlistmodel.cpp +++ b/tests/auto/declarative/qdeclarativefolderlistmodel/tst_qdeclarativefolderlistmodel.cpp @@ -133,6 +133,9 @@ void tst_qdeclarativefolderlistmodel::refresh() QAbstractListModel *flm = qobject_cast(component.create()); QVERIFY(flm != 0); + flm->setProperty("folder",QUrl::fromLocalFile(SRCDIR "/data")); + QTRY_COMPARE(flm->property("count").toInt(),2); // wait for refresh + int count = flm->rowCount(); connect(flm, SIGNAL(rowsRemoved(const QModelIndex&,int,int)), -- cgit v0.12