Set textContent when reporting progress

This commit is contained in:
Kevin Sawicki
2013-10-02 15:00:12 -07:00
parent e2fb2fdae5
commit 2d55c3e1e9

View File

@@ -113,7 +113,7 @@ class AtomReporter extends View
specCount = "#{@completeSpecCount - @skippedCount}/#{@totalSpecCount - @skippedCount} (#{@skippedCount} skipped)"
else
specCount = "#{@completeSpecCount}/#{@totalSpecCount}"
@specCount.text specCount
@specCount[0].textContent = specCount
updateStatusView: (spec) ->
if @failedCount > 0
@@ -127,7 +127,7 @@ class AtomReporter extends View
time = "#{Math.round((spec.endedAt - @startedAt.getTime()) / 10)}"
time = "0#{time}" if time.length < 3
@time.text "#{time[0...-2]}.#{time[-2..]}s"
@time[0].textContent = "#{time[0...-2]}.#{time[-2..]}s"
addSpecs: (specs) ->
coreSpecs = 0