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
14a9a8bd
...
14a9a8bd3a846c9a16f1d947f627cb48a6ecd6a9
authored
2012-12-27 00:43:33 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
better check for planned tests
1 parent
90bec9fa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
modules/tester.js
modules/tester.js
View file @
14a9a8b
...
...
@@ -830,9 +830,10 @@ Tester.prototype.done = function done(planned) {
if
(
arguments
.
length
>
0
)
{
this
.
casper
.
warn
(
'done() `planned` arg is deprecated as of 1.1'
);
}
if
(
this
.
currentSuite
&&
this
.
currentSuite
.
planned
!==
this
.
executed
)
{
if
(
this
.
currentSuite
&&
this
.
currentSuite
.
planned
&&
this
.
currentSuite
.
planned
!==
this
.
executed
)
{
this
.
dubious
(
this
.
currentSuite
.
planned
,
this
.
executed
);
}
else
if
(
planned
&&
planned
!==
this
.
executed
)
{
// BC
this
.
dubious
(
planned
,
this
.
executed
);
}
if
(
this
.
currentSuite
)
{
...
...
Please
register
or
sign in
to post a comment