aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/particles/qquickgroupgoal/tst_qquickgroupgoal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/particles/qquickgroupgoal/tst_qquickgroupgoal.cpp')
-rw-r--r--tests/auto/particles/qquickgroupgoal/tst_qquickgroupgoal.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/auto/particles/qquickgroupgoal/tst_qquickgroupgoal.cpp b/tests/auto/particles/qquickgroupgoal/tst_qquickgroupgoal.cpp
index c1cb8bcd4e..97c095ed9c 100644
--- a/tests/auto/particles/qquickgroupgoal/tst_qquickgroupgoal.cpp
+++ b/tests/auto/particles/qquickgroupgoal/tst_qquickgroupgoal.cpp
@@ -44,25 +44,29 @@
#include <private/qquickparticlesystem_p.h>
#include <private/qabstractanimation_p.h>
-class tst_qquickgroupgoal : public QObject
+#include "../../shared/util.h"
+
+class tst_qquickgroupgoal : public QQmlDataTest
{
Q_OBJECT
public:
- tst_qquickgroupgoal();
+ tst_qquickgroupgoal() {}
private slots:
+ void initTestCase();
void test_instantTransition();
};
-tst_qquickgroupgoal::tst_qquickgroupgoal()
+void tst_qquickgroupgoal::initTestCase()
{
+ QQmlDataTest::initTestCase();
QUnifiedTimer::instance()->setConsistentTiming(true);
}
void tst_qquickgroupgoal::test_instantTransition()
{
//Note: Does not go through sprite engine
- 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);