aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativepath/tst_qdeclarativepath.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/declarative/qdeclarativepath/tst_qdeclarativepath.cpp')
-rw-r--r--tests/auto/declarative/qdeclarativepath/tst_qdeclarativepath.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/auto/declarative/qdeclarativepath/tst_qdeclarativepath.cpp b/tests/auto/declarative/qdeclarativepath/tst_qdeclarativepath.cpp
index 97bffcbefa..c390b7b672 100644
--- a/tests/auto/declarative/qdeclarativepath/tst_qdeclarativepath.cpp
+++ b/tests/auto/declarative/qdeclarativepath/tst_qdeclarativepath.cpp
@@ -44,6 +44,7 @@
#include <QtDeclarative/qdeclarativecomponent.h>
#include <QtDeclarative/private/qdeclarativepath_p.h>
+#include "../shared/util.h"
#include "../../../shared/util.h"
class tst_QDeclarativePath : public QObject
@@ -61,7 +62,7 @@ private slots:
void tst_QDeclarativePath::arc()
{
QDeclarativeEngine engine;
- QDeclarativeComponent c(&engine, QUrl::fromLocalFile(SRCDIR "/data/arc.qml"));
+ QDeclarativeComponent c(&engine, QUrl::fromLocalFile(TESTDATA("arc.qml")));
QDeclarativePath *obj = qobject_cast<QDeclarativePath*>(c.create());
QVERIFY(obj != 0);
@@ -96,7 +97,7 @@ void tst_QDeclarativePath::arc()
void tst_QDeclarativePath::catmullromCurve()
{
QDeclarativeEngine engine;
- QDeclarativeComponent c(&engine, QUrl::fromLocalFile(SRCDIR "/data/curve.qml"));
+ QDeclarativeComponent c(&engine, QUrl::fromLocalFile(TESTDATA("curve.qml")));
QDeclarativePath *obj = qobject_cast<QDeclarativePath*>(c.create());
QVERIFY(obj != 0);
@@ -131,7 +132,7 @@ void tst_QDeclarativePath::catmullromCurve()
void tst_QDeclarativePath::svg()
{
QDeclarativeEngine engine;
- QDeclarativeComponent c(&engine, QUrl::fromLocalFile(SRCDIR "/data/svg.qml"));
+ QDeclarativeComponent c(&engine, QUrl::fromLocalFile(TESTDATA("svg.qml")));
QDeclarativePath *obj = qobject_cast<QDeclarativePath*>(c.create());
QVERIFY(obj != 0);