tests/auto/declarative/qdeclarativeflickable/tst_qdeclarativeflickable.cpp
changeset 33 3e2da88830cd
parent 30 5dc02b23752f
child 37 758a864f9613
equal deleted inserted replaced
30:5dc02b23752f 33:3e2da88830cd
    43 #include <QtDeclarative/qdeclarativeengine.h>
    43 #include <QtDeclarative/qdeclarativeengine.h>
    44 #include <QtDeclarative/qdeclarativecomponent.h>
    44 #include <QtDeclarative/qdeclarativecomponent.h>
    45 #include <private/qdeclarativeflickable_p.h>
    45 #include <private/qdeclarativeflickable_p.h>
    46 #include <private/qdeclarativevaluetype_p.h>
    46 #include <private/qdeclarativevaluetype_p.h>
    47 #include <math.h>
    47 #include <math.h>
       
    48 
       
    49 #ifdef Q_OS_SYMBIAN
       
    50 // In Symbian OS test data is located in applications private dir
       
    51 #define SRCDIR "."
       
    52 #endif
    48 
    53 
    49 class tst_qdeclarativeflickable : public QObject
    54 class tst_qdeclarativeflickable : public QObject
    50 {
    55 {
    51     Q_OBJECT
    56     Q_OBJECT
    52 public:
    57 public:
   140     QCOMPARE(obj->isInteractive(), false);
   145     QCOMPARE(obj->isInteractive(), false);
   141     QCOMPARE(obj->boundsBehavior(), QDeclarativeFlickable::StopAtBounds);
   146     QCOMPARE(obj->boundsBehavior(), QDeclarativeFlickable::StopAtBounds);
   142     QCOMPARE(obj->pressDelay(), 200);
   147     QCOMPARE(obj->pressDelay(), 200);
   143     QCOMPARE(obj->maximumFlickVelocity(), 2000.);
   148     QCOMPARE(obj->maximumFlickVelocity(), 2000.);
   144 
   149 
       
   150     QVERIFY(obj->property("ok").toBool() == false);
       
   151     QMetaObject::invokeMethod(obj, "check");
       
   152     QVERIFY(obj->property("ok").toBool() == true);
       
   153 
   145     delete obj;
   154     delete obj;
   146 }
   155 }
   147 
   156 
   148 void tst_qdeclarativeflickable::boundsBehavior()
   157 void tst_qdeclarativeflickable::boundsBehavior()
   149 {
   158 {