diff options
author | Kurt Korbatits <kurt.korbatits@nokia.com> | 2012-03-07 08:02:44 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-07 06:24:33 +0100 |
commit | 83b4f5cc4f2661a41bbed4e17606a5e40bd06b7c (patch) | |
tree | aa7bebfcc81a53ee999123f6c4aa05e75aceaca3 /tests/auto/particles/shared | |
parent | 72f4ccecf457eaa34469e9d7c2d05802214904d6 (diff) |
Changed particles tests to work from install directory
- Changed particles tests to use TESTDATA
- Changed particles tests to inherit from QQmlDataTest
and use testFileUrl() to find test data
Change-Id: Iae7c5111d976ec3efe473c40a3bab2f0a38c0969
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Diffstat (limited to 'tests/auto/particles/shared')
-rw-r--r-- | tests/auto/particles/shared/particlestestsshared.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/particles/shared/particlestestsshared.h b/tests/auto/particles/shared/particlestestsshared.h index 114ade7561..d1d1813d94 100644 --- a/tests/auto/particles/shared/particlestestsshared.h +++ b/tests/auto/particles/shared/particlestestsshared.h @@ -66,11 +66,11 @@ bool myFuzzyGEQ(qreal a, qreal b) return (a + EPSILON > b); } -QQuickView* createView(const QString &filename, int additionalWait=0) +QQuickView* createView(const QUrl &filename, int additionalWait=0) { QQuickView *canvas = new QQuickView(0); - canvas->setSource(QUrl::fromLocalFile(filename)); + canvas->setSource(filename); if (canvas->status() != QQuickView::Ready) return 0; canvas->show(); |