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
703e8852
...
703e88526fe58690cb7f59f64ecdc40426a2a60d
authored
2012-05-05 13:42:01 +0200
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added a Tester.assertTrue alias
1 parent
51a03f65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
modules/tester.js
modules/tester.js
View file @
703e885
...
...
@@ -85,7 +85,7 @@ var Tester = function Tester(casper, options) {
* @param Boolean subject
* @param String message Test description
*/
this
.
assert
=
function
assert
(
subject
,
message
)
{
this
.
assert
=
this
.
assertTrue
=
function
assert
(
subject
,
message
)
{
var
status
=
this
.
options
.
passText
,
eventName
;
if
(
subject
===
true
)
{
eventName
=
'success'
;
...
...
Please
register
or
sign in
to post a comment