diff options
Diffstat (limited to 'tests/auto/qtquick2/qdeclarativesmoothedanimation/tst_qdeclarativesmoothedanimation.cpp')
-rw-r--r-- | tests/auto/qtquick2/qdeclarativesmoothedanimation/tst_qdeclarativesmoothedanimation.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/qtquick2/qdeclarativesmoothedanimation/tst_qdeclarativesmoothedanimation.cpp b/tests/auto/qtquick2/qdeclarativesmoothedanimation/tst_qdeclarativesmoothedanimation.cpp index 632bcda091..2736377218 100644 --- a/tests/auto/qtquick2/qdeclarativesmoothedanimation/tst_qdeclarativesmoothedanimation.cpp +++ b/tests/auto/qtquick2/qdeclarativesmoothedanimation/tst_qdeclarativesmoothedanimation.cpp @@ -46,7 +46,7 @@ #include <private/qdeclarativevaluetype_p.h> #include "../../shared/util.h" -class tst_qdeclarativesmoothedanimation : public QObject +class tst_qdeclarativesmoothedanimation : public QDeclarativeDataTest { Q_OBJECT public: @@ -71,7 +71,7 @@ tst_qdeclarativesmoothedanimation::tst_qdeclarativesmoothedanimation() void tst_qdeclarativesmoothedanimation::defaultValues() { QDeclarativeEngine engine; - QDeclarativeComponent c(&engine, QUrl::fromLocalFile(TESTDATA("smoothedanimation1.qml"))); + QDeclarativeComponent c(&engine, testFileUrl("smoothedanimation1.qml")); QDeclarativeSmoothedAnimation *obj = qobject_cast<QDeclarativeSmoothedAnimation*>(c.create()); QVERIFY(obj != 0); @@ -88,7 +88,7 @@ void tst_qdeclarativesmoothedanimation::defaultValues() void tst_qdeclarativesmoothedanimation::values() { QDeclarativeEngine engine; - QDeclarativeComponent c(&engine, QUrl::fromLocalFile(TESTDATA("smoothedanimation2.qml"))); + QDeclarativeComponent c(&engine, testFileUrl("smoothedanimation2.qml")); QDeclarativeSmoothedAnimation *obj = qobject_cast<QDeclarativeSmoothedAnimation*>(c.create()); QVERIFY(obj != 0); @@ -105,7 +105,7 @@ void tst_qdeclarativesmoothedanimation::values() void tst_qdeclarativesmoothedanimation::disabled() { QDeclarativeEngine engine; - QDeclarativeComponent c(&engine, QUrl::fromLocalFile(TESTDATA("smoothedanimation3.qml"))); + QDeclarativeComponent c(&engine, testFileUrl("smoothedanimation3.qml")); QDeclarativeSmoothedAnimation *obj = qobject_cast<QDeclarativeSmoothedAnimation*>(c.create()); QVERIFY(obj != 0); @@ -148,7 +148,7 @@ void tst_qdeclarativesmoothedanimation::valueSource() { QDeclarativeEngine engine; - QDeclarativeComponent c(&engine, QUrl::fromLocalFile(TESTDATA("smoothedanimationValueSource.qml"))); + QDeclarativeComponent c(&engine, testFileUrl("smoothedanimationValueSource.qml")); QQuickRectangle *rect = qobject_cast<QQuickRectangle*>(c.create()); QVERIFY(rect); @@ -180,7 +180,7 @@ void tst_qdeclarativesmoothedanimation::behavior() { QDeclarativeEngine engine; - QDeclarativeComponent c(&engine, QUrl::fromLocalFile(TESTDATA("smoothedanimationBehavior.qml"))); + QDeclarativeComponent c(&engine, testFileUrl("smoothedanimationBehavior.qml")); QQuickRectangle *rect = qobject_cast<QQuickRectangle*>(c.create()); QVERIFY(rect); |