Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qtdeclarative
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
mer-core
qtdeclarative
Commits
5f386fd5
Commit
5f386fd5
authored
Mar 21, 2011
by
axis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed parserstress test.
parent
74d63460
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
20 deletions
+19
-20
tests/auto/declarative/parserstress/parserstress.pro
tests/auto/declarative/parserstress/parserstress.pro
+11
-6
tests/auto/declarative/parserstress/tst_parserstress.cpp
tests/auto/declarative/parserstress/tst_parserstress.cpp
+8
-14
No files found.
tests/auto/declarative/parserstress/parserstress.pro
View file @
5f386fd5
...
...
@@ -4,12 +4,17 @@ macx:CONFIG -= app_bundle
SOURCES
+=
tst_parserstress
.
cpp
symbian
:
{
importFiles
.
files
=
..
\\
..
\\
qscriptjstestsuite
\\
tests
importFiles
.
path
=
.
DEPLOYMENT
+=
importFiles
}
else
{
DEFINES
+=
SRCDIR
=
\\\
"$$PWD\\\"
!
isEmpty
(
QT
.
script
.
sources
)
{
symbian
:
{
importFiles
.
files
=
$$
QT
.
script
.
sources
\\
..
\\
..
\\
tests
\\
auto
\\
qscriptjstestsuite
\\
tests
importFiles
.
path
=
.
DEPLOYMENT
+=
importFiles
DEFINES
+=
TESTDATADIR
=
tests
DEFINES
+=
SRCDIR
=.
}
else
{
DEFINES
+=
TESTDATADIR
=
\\\
"$$QT.script.sources/../../tests/auto/qscriptjstestsuite/tests\\\"
DEFINES
+=
SRCDIR
=
\\\
"$$PWD\\\"
}
}
CONFIG
+=
parallel_test
...
...
tests/auto/declarative/parserstress/tst_parserstress.cpp
View file @
5f386fd5
...
...
@@ -46,11 +46,6 @@
#include <QDir>
#include <QFile>
#ifdef Q_OS_SYMBIAN
// In Symbian OS test data is located in applications private dir
#define SRCDIR "."
#endif
class
tst_parserstress
:
public
QObject
{
Q_OBJECT
...
...
@@ -91,25 +86,23 @@ 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
#ifdef TESTDATADIR
QDir
dir
(
TESTDATADIR
);
QStringList
files
=
findJSFiles
(
dir
);
QTest
::
addColumn
<
QString
>
(
"file"
);
foreach
(
const
QString
&
file
,
files
)
{
QTest
::
newRow
(
qPrintable
(
file
))
<<
file
;
}
#endif
}
void
tst_parserstress
::
ecmascript
()
{
#ifndef TESTDATADIR
QSKIP
(
"Needs QtScript sources"
,
SkipAll
);
#else
QFETCH
(
QString
,
file
);
QFile
f
(
file
);
...
...
@@ -157,6 +150,7 @@ void tst_parserstress::ecmascript()
QVERIFY
(
!
component
.
isError
());
}
#endif // ifdef TESTDATADIR
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment