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
85f4af7e
...
85f4af7ea87641c813862072911639ca7579215a
authored
2012-11-30 11:48:53 -0500
by
Justin Slattery
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
ref #295 - Adding fallback to casperScript name if the final value of the script string is empty.
1 parent
d4667cef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
modules/xunit.js
modules/xunit.js
View file @
85f4af7
...
...
@@ -55,6 +55,12 @@ function generateClassName(classname) {
if
(
~
script
.
indexOf
(
'.'
))
{
script
=
script
.
substring
(
0
,
script
.
lastIndexOf
(
'.'
));
}
// If we have trimmed our string down to nothing, default to script name
if
(
!
script
&&
phantom
.
casperScript
)
{
script
=
phantom
.
casperScript
;
}
return
script
||
"unknown"
;
}
...
...
Please
register
or
sign in
to post a comment