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
a8d6b513
...
a8d6b513c985086600d1a86a235762b5d63609e0
authored
2012-12-23 09:23:19 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
dubious assert results now have a dedicated style
1 parent
b41fb432
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
modules/tester.js
modules/tester.js
View file @
a8d6b51
...
...
@@ -952,7 +952,7 @@ Tester.prototype.processAssertionResult = function processAssertionResult(result
file
:
this
.
currentTestFile
});
}
var
eventName
=
'success'
,
var
eventName
=
'success'
,
message
=
result
.
message
||
result
.
standard
,
style
=
'INFO'
,
status
=
this
.
options
.
passText
;
...
...
@@ -961,6 +961,7 @@ Tester.prototype.processAssertionResult = function processAssertionResult(result
style
=
'RED_BAR'
;
status
=
this
.
options
.
failText
;
}
style
=
result
.
type
===
"dubious"
?
"WARN_BAR"
:
style
;
this
.
casper
.
echo
([
this
.
colorize
(
status
,
style
),
this
.
formatMessage
(
message
)].
join
(
' '
));
this
.
emit
(
eventName
,
result
);
if
(
this
.
options
.
failFast
&&
!
result
.
success
)
{
...
...
Please
register
or
sign in
to post a comment