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
cafb17c5
...
cafb17c536b30f3dcaa7a359b1ce533cf4c57dd0
authored
2014-08-09 04:05:03 +0200
by
Mickaël Andrieu
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge pull request #989 from Xenik007/master
ref #987 - Support for phantomjs v2.x
2 parents
239e9718
00b56a00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
bin/bootstrap.js
bin/bootstrap.js
View file @
cafb17c
...
...
@@ -101,16 +101,19 @@ CasperError.prototype = Object.getPrototypeOf(new Error());
phantom
.
exit
();
}
(
function
(
version
)
{
(
function
(
version
)
{
// required version check
if
(
version
.
major
!==
1
)
{
return
__die
(
'CasperJS needs PhantomJS v1.x'
);
}
if
(
version
.
minor
<
8
)
{
return
__die
(
'CasperJS needs at least PhantomJS v1.8 or later.'
);
}
if
(
version
.
minor
===
8
&&
version
.
patch
<
1
)
{
return
__die
(
'CasperJS needs at least PhantomJS v1.8.1 or later.'
);
if
(
version
.
major
===
1
)
{
if
(
version
.
minor
<
8
)
{
return
__die
(
'CasperJS needs at least PhantomJS v1.8 or later.'
);
}
if
(
version
.
minor
===
8
&&
version
.
patch
<
1
)
{
return
__die
(
'CasperJS needs at least PhantomJS v1.8.1 or later.'
);
}
}
else
if
(
version
.
major
===
2
)
{
console
.
log
(
"Warning PhantomJS v2.0 not yet released. There will not be any official support for any bugs until stable version is released!"
);
}
else
return
__die
(
'CasperJS needs PhantomJS v1.x or v2.x'
);
})(
phantom
.
version
);
// Hooks in default phantomjs error handler
...
...
Please
register
or
sign in
to post a comment