diff options
author | Martin Jones <martin.jones@nokia.com> | 2011-02-28 22:27:17 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2011-02-28 22:27:17 (GMT) |
commit | c9832df940516d14ce98031b284a3c87d80aaa80 (patch) | |
tree | 8b8cc4a77577dc3f7645c5e646e2f46344c1e6ed /tests | |
parent | cb0a6844705802564c81b581f24a76c5d5adf6d1 (diff) | |
download | Qt-c9832df940516d14ce98031b284a3c87d80aaa80.zip Qt-c9832df940516d14ce98031b284a3c87d80aaa80.tar.gz Qt-c9832df940516d14ce98031b284a3c87d80aaa80.tar.bz2 |
Fix FolderListModel test - set folder to one containing files.
Change-Id: I95aabd35c3a33b603aa3b11130ddea5f5c101ce9
Task-number: QTBUG-17775
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/declarative/qdeclarativefolderlistmodel/tst_qdeclarativefolderlistmodel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<QAbstractListModel*>(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)), |