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
9286fded
...
9286fded1adc29944a31553f2ea596dbac844fa2
authored
2012-06-06 07:55:25 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixes #140 - 'casper test' now resolves local paths urls
1 parent
93592673
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
tests/run.js
tests/run.js
View file @
9286fde
...
...
@@ -41,7 +41,7 @@ casper.options.logLevel = casper.cli.get('log-level') || "error";
// overriding Casper.open to prefix all test urls
casper
.
setFilter
(
'open.location'
,
function
(
location
)
{
if
(
!
/^http/
.
test
(
location
))
{
return
f
(
'file://%s/%s'
,
phantom
.
casperPath
,
location
);
return
f
(
'file://%s/%s'
,
fs
.
workingDirectory
,
location
);
}
return
location
;
});
...
...
Please
register
or
sign in
to post a comment