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
46210431
...
4621043145b6c075eccc2a94bc3fbbc499bd1ae8
authored
2011-10-09 20:33:20 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
moved testResults declaration to assert.js
1 parent
55529f98
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
tests/assert.js
tests/run.js
tests/assert.js
View file @
4621043
var
testResults
=
{
passed
:
0
,
failed
:
0
};
phantom
.
Casper
.
extend
({
assert
:
function
(
condition
,
message
)
{
var
status
=
'[PASS]'
;
...
...
tests/run.js
View file @
4621043
...
...
@@ -3,10 +3,7 @@ phantom.injectJs('tests/assert.js');
var
casper
=
new
phantom
.
Casper
({
verbose
:
true
,
}),
testResults
=
{
passed
:
0
,
failed
:
0
};
});
casper
.
start
(
'tests/site/index.html'
,
function
(
self
)
{
self
.
assertEvalEquals
(
function
()
{
...
...
Please
register
or
sign in
to post a comment