Add back durations to spec reporter

This commit is contained in:
Kevin Sawicki
2013-09-25 17:35:52 -07:00
parent 512f45c61e
commit 5cecd533ef
2 changed files with 2 additions and 1 deletions

View File

@@ -92,7 +92,7 @@ class AtomReporter extends View
clearTimeout @timeoutId if @timeoutId?
@specPopup.show()
spec = _.find(window.timedSpecs, (spec) -> description is spec.name)
spec = _.find(window.timedSpecs, ({fullName}) -> description is fullName)
description = "#{description} #{spec.time}ms" if spec
@specPopup.text description
{left, top} = element.offset()

View File

@@ -53,6 +53,7 @@ class TimeReporter extends jasmine.Reporter
window.timedSpecs.push
description: @description
time: duration
fullName: spec.getFullName()
if timedSuites[@suite]
window.timedSuites[@suite] += duration