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
8521d467
...
8521d4670add15fbb04bda97823434cced71032b
authored
2011-12-15 17:25:12 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
refs #28 - naming consistency
1 parent
6e38aa26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
bin/casperjs
casper.js
bin/casperjs
View file @
8521d46
...
...
@@ -2,4 +2,4 @@
CASPERJS_HOME
=
"
$(
cd
-P
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
cd
..
&&
pwd
)
"
phantomjs
$CASPERJS_HOME
/casper.js --casper-
dir
=
$CASPERJS_HOME
$*
phantomjs
$CASPERJS_HOME
/casper.js --casper-
path
=
$CASPERJS_HOME
$*
...
...
casper.js
View file @
8521d46
...
...
@@ -34,14 +34,14 @@
// seeking for casperPath passed as an argument
phantom
.
args
.
forEach
(
function
(
arg
)
{
var
pathMatch
=
arg
.
match
(
/--casper-
dir
=
(
.+
)
/
);
var
pathMatch
=
arg
.
match
(
/--casper-
path
=
(
.+
)
/
);
if
(
pathMatch
)
{
phantom
.
casperPath
=
pathMatch
[
1
];
}
});
if
(
!
phantom
.
casperPath
||
!
fs
.
isDirectory
(
phantom
.
casperPath
))
{
console
.
log
(
'Cannot find CasperJS home path. Did you set phantom.casperPath or pass the --casper-
dir
option?'
);
console
.
log
(
'Cannot find CasperJS home path. Did you set phantom.casperPath or pass the --casper-
path
option?'
);
}
[
...
...
Please
register
or
sign in
to post a comment