mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Add back durations to spec reporter
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user