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
40fe596d
...
40fe596dabcf97ee60c8fa0ddacea0496b3dd062
authored
2012-09-24 10:27:12 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
CasperJS' not compatible with PhantomJS 1.7 yet
1 parent
bfca90b2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
bin/bootstrap.js
bin/bootstrap.js
View file @
40fe596
...
...
@@ -33,9 +33,14 @@
if
(
!
phantom
||
phantom
.
version
.
major
!==
1
||
phantom
.
version
.
minor
<
5
)
{
console
.
error
(
'CasperJS needs at least PhantomJS v1.5.0'
);
phantom
.
exit
(
1
);
}
else
if
(
!
phantom
||
phantom
.
version
.
major
!==
1
||
phantom
.
version
.
minor
===
7
)
{
console
.
error
(
'CasperJS is currently broken with PhantomJS 1.7, sorry.'
);
phantom
.
exit
(
1
);
}
else
{
bootstrap
(
window
);
}
(
function
bootstrap
(
global
)
{
function
bootstrap
(
global
)
{
"use strict"
;
/**
* Loads and initialize the CasperJS environment.
...
...
@@ -302,4 +307,4 @@ if (!phantom || phantom.version.major !== 1 || phantom.version.minor < 5) {
if
(
true
===
phantom
.
casperArgs
.
get
(
'cli'
))
{
phantom
.
initCasperCli
();
}
}
)(
window
);
}
...
...
Please
register
or
sign in
to post a comment