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
f20f259d
...
f20f259d68dec0337c7ce58960c02329527a7fea
authored
2012-09-22 11:10:19 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
better naming of pre/post processing closures - refs #231
1 parent
36ca5058
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
modules/tester.js
modules/tester.js
View file @
f20f259
...
...
@@ -725,15 +725,15 @@ var Tester = function Tester(casper, options) {
if
(
arguments
.
length
===
0
)
{
throw
new
CasperError
(
"runSuites() needs at least one path argument"
);
}
this
.
loadIncludes
.
includes
.
forEach
(
function
(
include
)
{
this
.
loadIncludes
.
includes
.
forEach
(
function
_forEachInclude
(
include
)
{
phantom
.
injectJs
(
include
);
});
this
.
loadIncludes
.
pre
.
forEach
(
function
(
includ
e
)
{
testFiles
=
testFiles
.
concat
(
includ
e
);
this
.
loadIncludes
.
pre
.
forEach
(
function
_forEachPreTest
(
preTestFil
e
)
{
testFiles
=
testFiles
.
concat
(
preTestFil
e
);
});
Array
.
prototype
.
forEach
.
call
(
arguments
,
function
_forEach
(
path
)
{
Array
.
prototype
.
forEach
.
call
(
arguments
,
function
_forEach
Argument
(
path
)
{
if
(
!
fs
.
exists
(
path
))
{
self
.
bar
(
f
(
"Path %s doesn't exist"
,
path
),
"RED_BAR"
);
}
...
...
@@ -744,8 +744,8 @@ var Tester = function Tester(casper, options) {
}
});
this
.
loadIncludes
.
post
.
forEach
(
function
(
includ
e
)
{
testFiles
=
testFiles
.
concat
(
includ
e
);
this
.
loadIncludes
.
post
.
forEach
(
function
_forEachPostTest
(
postTestFil
e
)
{
testFiles
=
testFiles
.
concat
(
postTestFil
e
);
});
if
(
testFiles
.
length
===
0
)
{
...
...
Please
register
or
sign in
to post a comment