summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/parserstress
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2010-04-30 05:11:11 (GMT)
committerJoona Petrell <joona.t.petrell@nokia.com>2010-05-14 00:45:40 (GMT)
commit1e395c0ab9676995419ae8b20e4d95ad3fe11f31 (patch)
tree4ec1d34bd8ce057736c9a48d31139696872094c0 /tests/auto/declarative/parserstress
parent169e7558fd731abdfceed00e5b2ca03c634e8d5d (diff)
downloadQt-1e395c0ab9676995419ae8b20e4d95ad3fe11f31.zip
Qt-1e395c0ab9676995419ae8b20e4d95ad3fe11f31.tar.gz
Qt-1e395c0ab9676995419ae8b20e4d95ad3fe11f31.tar.bz2
Symbian build fix to declarative auto and benchmark tests
Task-number: QTBUG-9491 Reviewed-by: Martin Jones
Diffstat (limited to 'tests/auto/declarative/parserstress')
-rw-r--r--tests/auto/declarative/parserstress/parserstress.pro9
-rw-r--r--tests/auto/declarative/parserstress/tst_parserstress.cpp6
2 files changed, 13 insertions, 2 deletions
diff --git a/tests/auto/declarative/parserstress/parserstress.pro b/tests/auto/declarative/parserstress/parserstress.pro
index 8830511..a95a855 100644
--- a/tests/auto/declarative/parserstress/parserstress.pro
+++ b/tests/auto/declarative/parserstress/parserstress.pro
@@ -4,7 +4,14 @@ macx:CONFIG -= app_bundle
SOURCES += tst_parserstress.cpp
-DEFINES += SRCDIR=\\\"$$PWD\\\"
+symbian: {
+ DEFINES += SRCDIR=\".\"
+ importFiles.sources = ..\..\qscriptjstestsuite\tests
+ importFiles.path =
+ DEPLOYMENT = importFiles
+} else {
+ DEFINES += SRCDIR=\\\"$$PWD\\\"
+}
CONFIG += parallel_test
diff --git a/tests/auto/declarative/parserstress/tst_parserstress.cpp b/tests/auto/declarative/parserstress/tst_parserstress.cpp
index 294f2f7..c86908b 100644
--- a/tests/auto/declarative/parserstress/tst_parserstress.cpp
+++ b/tests/auto/declarative/parserstress/tst_parserstress.cpp
@@ -86,12 +86,15 @@ QStringList tst_parserstress::findJSFiles(const QDir &d)
void tst_parserstress::ecmascript_data()
{
+#ifdef Q_OS_SYMBIAN
+ QDir dir("tests");
+#else
QDir dir(SRCDIR);
dir.cdUp();
dir.cdUp();
dir.cd("qscriptjstestsuite");
dir.cd("tests");
-
+#endif
QStringList files = findJSFiles(dir);
QTest::addColumn<QString>("file");
@@ -129,6 +132,7 @@ void tst_parserstress::ecmascript()
QByteArray qmlData = qml.toUtf8();
QDeclarativeComponent component(&engine);
+
component.setData(qmlData, QUrl::fromLocalFile(SRCDIR + QString("/dummy.qml")));
QFileInfo info(file);