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
67d93069
...
67d9306905328d767ae90f8b38efa2b7d84d7f82
authored
2012-10-31 21:13:34 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed failing tests
1 parent
faf6a4fe
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
2 deletions
bin/bootstrap.js
tests/suites/modules/csmodule.coffee → tests/sample_modules/csmodule.coffee
tests/suites/modules/jsmodule.js → tests/sample_modules/jsmodule.js
tests/suites/require.js
bin/bootstrap.js
View file @
67d9306
...
...
@@ -275,7 +275,7 @@ function bootstrap(global) {
}
else
if
(
phantom
.
casperArgs
.
get
(
0
)
===
"selftest"
)
{
phantom
.
casperScript
=
fs
.
absolute
(
fs
.
pathJoin
(
phantom
.
casperPath
,
'tests'
,
'run.js'
));
phantom
.
casperSelfTest
=
true
;
//
phantom.casperArgs.options.includes = fs.pathJoin(phantom.casperPath, 'tests', 'selftest.js');
phantom
.
casperArgs
.
options
.
includes
=
fs
.
pathJoin
(
phantom
.
casperPath
,
'tests'
,
'selftest.js'
);
if
(
phantom
.
casperArgs
.
args
.
length
<=
1
)
{
phantom
.
casperArgs
.
args
.
push
(
fs
.
pathJoin
(
phantom
.
casperPath
,
'tests'
,
'suites'
));
}
...
...
tests/s
uites/
modules/csmodule.coffee
→
tests/s
ample_
modules/csmodule.coffee
View file @
67d9306
File moved
tests/s
uites/
modules/jsmodule.js
→
tests/s
ample_
modules/jsmodule.js
View file @
67d9306
File moved
tests/suites/require.js
View file @
67d9306
/*global casper*/
/*jshint strict:false*/
var
fs
=
require
(
'fs'
);
var
modroot
=
fs
.
pathJoin
(
phantom
.
casperPath
,
'tests'
,
's
uites'
,
'
modules'
);
var
modroot
=
fs
.
pathJoin
(
phantom
.
casperPath
,
'tests'
,
's
ample_
modules'
);
var
jsmod
,
csmod
;
casper
.
test
.
comment
(
'Javascript module loading'
)
...
...
Please
register
or
sign in
to post a comment