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
a3408692
...
a34086928cb57fe1a56e4912bc43614a9cd4b9d7
authored
2011-10-09 20:37:06 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added Casper#assertEval in assert.js
1 parent
e580b7d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
tests/assert.js
tests/assert.js
View file @
a340869
...
...
@@ -27,6 +27,10 @@ phantom.Casper.extend({
}
},
assertEval
:
function
(
fn
,
message
)
{
return
this
.
assert
(
this
.
evaluate
(
fn
),
message
);
},
assertEvalEquals
:
function
(
fn
,
expected
,
message
)
{
return
this
.
assertEquals
(
this
.
evaluate
(
fn
),
expected
,
message
);
},
...
...
Please
register
or
sign in
to post a comment