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
b2398148
...
b2398148969745902103b0dc2ea908b0d14525e5
authored
2012-12-28 22:39:36 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
more informative dubious messages
1 parent
00896185
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
modules/tester.js
modules/tester.js
View file @
b239814
...
...
@@ -837,7 +837,7 @@ Tester.prototype.done = function done(planned) {
this
.
casper
.
warn
(
'done() `planned` arg is deprecated as of 1.1'
);
}
if
(
this
.
currentSuite
&&
this
.
currentSuite
.
planned
&&
this
.
currentSuite
.
planned
!==
this
.
executed
)
{
this
.
dubious
(
this
.
currentSuite
.
planned
,
this
.
executed
);
this
.
dubious
(
this
.
currentSuite
.
planned
,
this
.
executed
,
this
.
currentSuite
.
name
);
}
else
if
(
planned
&&
planned
!==
this
.
executed
)
{
// BC
this
.
dubious
(
planned
,
this
.
executed
);
...
...
@@ -861,9 +861,9 @@ Tester.prototype.done = function done(planned) {
*
* @param String message
*/
Tester
.
prototype
.
dubious
=
function
dubious
(
planned
,
executed
)
{
Tester
.
prototype
.
dubious
=
function
dubious
(
planned
,
executed
,
suite
)
{
"use strict"
;
this
.
casper
.
warn
(
f
(
'%
d tests planned, %d tests executed
'
,
planned
,
executed
));
this
.
casper
.
warn
(
f
(
'%
s: %d tests planned, %d tests executed'
,
suite
||
'global
'
,
planned
,
executed
));
};
/**
...
...
Please
register
or
sign in
to post a comment