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
5ec02b49
...
5ec02b49067dd3a7ceee29e3553b053ea2b6b082
authored
2011-12-25 11:11:20 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
began updateing test runner, suites to follow
1 parent
2ce1b83c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
modules/tester.js
tests/run.js
modules/tester.js
View file @
5ec02b4
...
...
@@ -28,6 +28,7 @@
var
fs
=
require
(
'fs'
);
var
utils
=
require
(
'utils'
);
var
esprima
=
require
(
'./modules/vendors/esprima'
);
exports
.
create
=
function
(
casper
,
options
)
{
return
new
Tester
(
casper
,
options
);
...
...
tests/run.js
View file @
5ec02b4
...
...
@@ -6,15 +6,8 @@ if (!phantom.casperLoaded) {
var
fs
=
require
(
'fs'
);
var
utils
=
require
(
'utils'
);
phantom
.
injectJs
(
fs
.
pathJoin
(
phantom
.
casperPath
,
'lib'
,
'vendors'
,
'esprima.js'
));
var
casper
=
new
phantom
.
Casper
({
faultTolerant
:
false
,
verbose
:
true
});
// Overriding Casper.open to prefix all test urls
phantom
.
Casper
.
extend
({
require
(
'casper'
)
.
Casper
.
extend
({
open
:
function
(
location
,
options
)
{
options
=
utils
.
isType
(
options
,
"object"
)
?
options
:
{};
this
.
requestUrl
=
location
;
...
...
@@ -24,6 +17,11 @@ phantom.Casper.extend({
}
});
var
casper
=
require
(
'casper'
).
create
({
faultTolerant
:
false
,
verbose
:
true
});
(
function
(
casper
)
{
var
tests
=
[];
if
(
casper
.
cli
.
args
.
length
)
{
...
...
Please
register
or
sign in
to post a comment