diff -r 5dc02b23752f -r 3e2da88830cd tests/auto/declarative/qdeclarativepathview/tst_qdeclarativepathview.cpp --- a/tests/auto/declarative/qdeclarativepathview/tst_qdeclarativepathview.cpp Tue Jul 06 15:10:48 2010 +0300 +++ b/tests/auto/declarative/qdeclarativepathview/tst_qdeclarativepathview.cpp Wed Aug 18 10:37:55 2010 +0300 @@ -57,6 +57,11 @@ #include "../../../shared/util.h" +#ifdef Q_OS_SYMBIAN +// In Symbian OS test data is located in applications private dir +#define SRCDIR "." +#endif + class tst_QDeclarativePathView : public QObject { Q_OBJECT @@ -445,6 +450,20 @@ pathview->setOffset(0.0); QCOMPARE(firstItem->pos() + offset, start); + // Change delegate size + pathview->setOffset(0.1); + pathview->setOffset(0.0); + canvas->rootObject()->setProperty("delegateWidth", 30); + QCOMPARE(firstItem->width(), 30.0); + offset.setX(firstItem->width()/2); + QTRY_COMPARE(firstItem->pos() + offset, start); + + // Change delegate scale + pathview->setOffset(0.1); + pathview->setOffset(0.0); + canvas->rootObject()->setProperty("delegateScale", 1.2); + QTRY_COMPARE(firstItem->pos() + offset, start); + delete canvas; }