aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/particles/qquickellipseextruder/tst_qquickellipseextruder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/particles/qquickellipseextruder/tst_qquickellipseextruder.cpp')
-rw-r--r--tests/auto/particles/qquickellipseextruder/tst_qquickellipseextruder.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/auto/particles/qquickellipseextruder/tst_qquickellipseextruder.cpp b/tests/auto/particles/qquickellipseextruder/tst_qquickellipseextruder.cpp
index 4fbc656386..2d86233924 100644
--- a/tests/auto/particles/qquickellipseextruder/tst_qquickellipseextruder.cpp
+++ b/tests/auto/particles/qquickellipseextruder/tst_qquickellipseextruder.cpp
@@ -45,20 +45,24 @@
#include <private/qquickparticlesystem_p.h>
#include <private/qabstractanimation_p.h>
-class tst_qquickellipseextruder : public QObject
+#include "../../shared/util.h"
+
+class tst_qquickellipseextruder : public QQmlDataTest
{
Q_OBJECT
public:
- tst_qquickellipseextruder();
+ tst_qquickellipseextruder() {}
private slots:
+ void initTestCase();
void test_basic();
private:
bool inCircle(qreal x, qreal y, qreal r, bool borderOnly=false);
};
-tst_qquickellipseextruder::tst_qquickellipseextruder()
+void tst_qquickellipseextruder::initTestCase()
{
+ QQmlDataTest::initTestCase();
QUnifiedTimer::instance()->setConsistentTiming(true);
}
@@ -77,7 +81,7 @@ bool tst_qquickellipseextruder::inCircle(qreal x, qreal y, qreal r, bool borderO
void tst_qquickellipseextruder::test_basic()
{
- QQuickView* view = createView(QCoreApplication::applicationDirPath() + "/data/basic.qml", 600);
+ QQuickView* view = createView(testFileUrl("basic.qml"), 600);
QQuickParticleSystem* system = view->rootObject()->findChild<QQuickParticleSystem*>("system");
ensureAnimTime(600, system->m_animation);