From 5cecd533ef9f46df0657bcb9b813ada1608a16c3 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 25 Sep 2013 17:35:52 -0700 Subject: [PATCH] Add back durations to spec reporter --- spec/atom-reporter.coffee | 2 +- spec/time-reporter.coffee | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/atom-reporter.coffee b/spec/atom-reporter.coffee index 7c2203c51..099a78f1f 100644 --- a/spec/atom-reporter.coffee +++ b/spec/atom-reporter.coffee @@ -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() diff --git a/spec/time-reporter.coffee b/spec/time-reporter.coffee index 49ef984c0..f5555f392 100644 --- a/spec/time-reporter.coffee +++ b/spec/time-reporter.coffee @@ -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