Merge pull request #12276 from pbiggar/master

Add ability to see passed specs via tooltips
This commit is contained in:
Max Brunsfeld 2016-08-03 09:35:31 -07:00 committed by GitHub
commit 368b677420

View File

@ -197,6 +197,21 @@ class AtomReporter
time = "0#{time}" if time.length < 3
@time.textContent = "#{time[0...-2]}.#{time[-2..]}s"
specTitle: (spec) ->
parentDescs = []
s = spec.suite
while s
parentDescs.unshift(s.description)
s = s.parentSuite
suiteString = ""
indent = ""
for desc in parentDescs
suiteString += indent + desc + "\n"
indent += " "
"#{suiteString} #{indent} it #{spec.description}"
addSpecs: (specs) ->
coreSpecs = 0
bundledPackageSpecs = 0
@ -204,6 +219,7 @@ class AtomReporter
for spec in specs
symbol = document.createElement('li')
symbol.setAttribute('id', "spec-summary-#{spec.id}")
symbol.setAttribute('title', @specTitle(spec))
symbol.className = "spec-summary pending"
switch spec.specType
when 'core'