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
252dbe7f
...
252dbe7fc2161553af52062f718a94054cc2ac68
authored
2012-02-15 22:24:19 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
refs #52 - taliban cosmetics
1 parent
def87690
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
modules/tester.js
modules/tester.js
View file @
252dbe7
...
...
@@ -146,7 +146,7 @@ var Tester = function(casper, options) {
*
* @param Function fn A function to be evaluated in remote DOM
* @param String message Test description
* @param Object context Object containing the parameters to inject into the function
* @param Object context Object containing the parameters to inject into the function
(optional)
*/
this
.
assertEval
=
function
assertEval
(
fn
,
message
,
context
)
{
return
this
.
assert
(
casper
.
evaluate
(
fn
,
context
),
message
);
...
...
@@ -159,7 +159,7 @@ var Tester = function(casper, options) {
* @param Function fn The function to be evaluated in remote DOM
* @param Boolean expected The expected value
* @param String message Test description
* @param Object context Object containing the parameters to inject into the function
* @param Object context Object containing the parameters to inject into the function
(optional)
*/
this
.
assertEvalEquals
=
function
assertEvalEquals
(
fn
,
expected
,
message
,
context
)
{
return
this
.
assertEquals
(
casper
.
evaluate
(
fn
,
context
),
expected
,
message
);
...
...
@@ -176,7 +176,6 @@ var Tester = function(casper, options) {
return
this
.
assert
(
casper
.
exists
(
selector
),
message
);
};
/**
* Asserts that current HTTP status is the one passed as argument.
*
...
...
Please
register
or
sign in
to post a comment