aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qsglistview
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2011-10-17 12:39:22 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-17 04:46:12 +0200
commit9470ce517d466606db0317f6af0800890c2c874d (patch)
tree09d39387036e4421ec997986ec86be54f5eaae85 /tests/auto/declarative/qsglistview
parent9bd6361400a2a4e4045a090de73d70082cc6d1bf (diff)
Fix tests
Fix referenced test data file and don't wait so long for move to process Change-Id: I55571e99015f2799a231365532aa1778e148f9e5 Reviewed-by: Bea Lam <bea.lam@nokia.com>
Diffstat (limited to 'tests/auto/declarative/qsglistview')
-rw-r--r--tests/auto/declarative/qsglistview/tst_qsglistview.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/declarative/qsglistview/tst_qsglistview.cpp b/tests/auto/declarative/qsglistview/tst_qsglistview.cpp
index be297122ba..1b5a8b2a4c 100644
--- a/tests/auto/declarative/qsglistview/tst_qsglistview.cpp
+++ b/tests/auto/declarative/qsglistview/tst_qsglistview.cpp
@@ -686,7 +686,7 @@ void tst_QSGListView::inserted_more()
TestObject *testObject = new TestObject;
ctxt->setContextProperty("testObject", testObject);
- canvas->setSource(QUrl::fromLocalFile(TESTDATA("/data/listviewtest.qml")));
+ canvas->setSource(QUrl::fromLocalFile(TESTDATA("listviewtest.qml")));
qApp->processEvents();
QSGListView *listview = findItem<QSGListView>(canvas->rootObject(), "list");
@@ -1075,7 +1075,7 @@ void tst_QSGListView::moved()
model.moveItems(from, to, count);
// wait for items to move
- QTest::qWait(300);
+ QTest::qWait(100);
QList<QSGItem*> items = findItems<QSGItem>(contentItem, "wrapper");
int firstVisibleIndex = -1;