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
35533322
...
35533322955b773fa9b6659a6e59e388c61e5d53
authored
2012-06-23 20:25:52 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added support for phantomjs 1.6 new cli options
1 parent
15af4dc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
bin/casperjs
bin/casperjs
View file @
3553332
...
...
@@ -18,14 +18,16 @@ PHANTOMJS_NATIVE_ARGS = [
'ignore-ssl-errors'
,
'load-images'
,
'load-plugins'
,
'local-storage-path'
,
'local-storage-quota'
,
'local-to-remote-url-access'
,
'max-disk-cache-size'
,
'output-encoding'
,
'remote-debugger-port'
,
'remote-debugger-autorun'
,
'proxy'
,
'proxy-auth'
,
'proxy-type'
,
'remote-debugger-port'
,
'remote-debugger-autorun'
,
'script-encoding'
,
'web-security'
,
]
...
...
@@ -44,7 +46,11 @@ for arg in sys.argv[1:]:
CASPER_PATH
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
resolve
(
__file__
)),
'..'
))
CASPER_COMMAND
=
os
.
environ
.
get
(
'PHANTOMJS_EXECUTABLE'
,
'phantomjs'
)
.
split
(
' '
)
CASPER_COMMAND
.
extend
(
PHANTOMJS_ARGS
)
CASPER_COMMAND
.
extend
([
os
.
path
.
join
(
CASPER_PATH
,
'bin'
,
'bootstrap.js'
),
'--casper-path=
%
s'
%
CASPER_PATH
,
'--cli'
])
CASPER_COMMAND
.
extend
([
os
.
path
.
join
(
CASPER_PATH
,
'bin'
,
'bootstrap.js'
),
'--casper-path=
%
s'
%
CASPER_PATH
,
'--cli'
])
CASPER_COMMAND
.
extend
(
CASPER_ARGS
)
try
:
...
...
Please
register
or
sign in
to post a comment