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
1c9f18e0
...
1c9f18e09f82d32ef214835d7d2ad12a11ff9cd8
authored
2012-12-12 21:12:25 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixes #315 - circumvent phantomjs 1.7 'exit() doesn't really exit' bug
1 parent
3e65d367
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
bin/bootstrap.js
bin/bootstrap.js
View file @
1c9f18e
...
...
@@ -282,7 +282,7 @@ function bootstrap(global) {
if
(
!!
phantom
.
casperArgs
.
options
.
version
)
{
console
.
log
(
phantom
.
casperVersion
.
toString
());
phantom
.
exit
(
0
);
return
phantom
.
exit
(
);
}
else
if
(
phantom
.
casperArgs
.
get
(
0
)
===
"test"
)
{
phantom
.
casperScript
=
fs
.
absolute
(
fs
.
pathJoin
(
baseTestsPath
,
'run.js'
));
phantom
.
casperTest
=
true
;
...
...
@@ -302,7 +302,7 @@ function bootstrap(global) {
phantom
.
casperVersion
.
toString
(),
phantom
.
casperPath
,
phantomVersion
));
console
.
log
(
fs
.
read
(
fs
.
pathJoin
(
phantom
.
casperPath
,
'bin'
,
'usage.txt'
)));
phantom
.
exit
(
0
);
return
phantom
.
exit
(
0
);
}
if
(
!
phantom
.
casperScript
)
{
...
...
@@ -311,7 +311,7 @@ function bootstrap(global) {
if
(
!
fs
.
isFile
(
phantom
.
casperScript
))
{
console
.
error
(
'Unable to open file: '
+
phantom
.
casperScript
);
phantom
.
exit
(
1
);
return
phantom
.
exit
(
1
);
}
// filter out the called script name from casper args
...
...
Please
register
or
sign in
to post a comment