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
f0b8a38a
...
f0b8a38ae09e8b30a3f807e86d6b9e04a8974755
authored
2012-01-12 09:45:42 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added safer filter for open.location in run.js
1 parent
b1b5d0e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
tests/run.js
tests/run.js
View file @
f0b8a38
...
...
@@ -12,7 +12,10 @@ var casper = require('casper').create({
// Overriding Casper.open to prefix all test urls
casper
.
setFilter
(
'open.location'
,
function
(
location
)
{
return
'file://'
+
phantom
.
casperPath
+
'/'
+
location
;
if
(
!
/^http/
.
test
(
location
))
{
return
'file://'
+
phantom
.
casperPath
+
'/'
+
location
;
}
return
location
;
});
var
tests
=
[];
...
...
Please
register
or
sign in
to post a comment