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
cd44ddab
...
cd44ddab67596c2282ef25631ebe2174151fbb2d
authored
2013-01-03 12:33:16 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
dubious tests now raise an AssertionError
1 parent
067b6dcf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
modules/tester.js
modules/tester.js
View file @
cd44dda
...
...
@@ -894,7 +894,12 @@ Tester.prototype.done = function done(planned) {
*/
Tester
.
prototype
.
dubious
=
function
dubious
(
planned
,
executed
,
suite
)
{
"use strict"
;
this
.
casper
.
warn
(
f
(
'%s: %d tests planned, %d tests executed'
,
suite
||
'global'
,
planned
,
executed
));
var
message
=
f
(
'%s: %d tests planned, %d tests executed'
,
suite
||
'global'
,
planned
,
executed
);
this
.
casper
.
warn
(
message
);
return
this
.
assert
(
false
,
message
,
{
type
:
"dubious"
,
standard
:
message
});
};
/**
...
...
Please
register
or
sign in
to post a comment