Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
cbb88484
...
cbb8848409ebda2f07750f66e32a19815314d65e
authored
2011-12-18 14:31:36 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed test suite runner
1 parent
0c4095fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
tests/run.js
tests/run.js
View file @
cbb8848
if
(
!
phantom
.
casper
Path
||
!
phantom
.
Casper
)
{
if
(
!
phantom
.
casper
Loaded
)
{
console
.
log
(
'This script must be invoked using the casperjs executable'
);
phantom
.
exit
(
1
);
}
...
...
@@ -25,8 +25,8 @@ phantom.Casper.extend({
(
function
(
casper
)
{
var
tests
=
[];
if
(
phantom
.
args
.
length
>
2
&&
fs
.
isFile
(
phantom
.
args
[
2
]))
{
tests
=
[
phantom
.
args
[
2
]];
if
(
phantom
.
casperArgs
.
args
.
length
>
2
&&
fs
.
isFile
(
phantom
.
casperArgs
.
args
[
2
]))
{
tests
=
[
phantom
.
casperArgs
.
args
[
2
]];
}
else
{
tests
=
[
fs
.
absolute
(
fs
.
pathJoin
(
phantom
.
casperPath
,
'tests'
,
'suites'
))];
}
...
...
Please
register
or
sign in
to post a comment