     if test.failure
       result.failures = (@digestFailure(failure) for failure in test.failure)
     return result
-    
+
   digestFailure: (failure) ->
     return {
-      stack: @digestStack(failure._)
-      type: failure.$.type # always expect? Is something broken?
-      message: failure.$.message
-    }
-
-    
+    stack: @digestStack(failure._)
+    type: failure.$.type # always expect? Is something broken?
+    message: failure.$.message
+    }
+
+
   #- other
 
   onClickShowStackButton: (e) ->

      @listenForChanges()
    else
      @setStatus('Off')
    
  listenForChanges: ->
    @setStatus('Listening In')
    self = @
    connection = new WebSocket('ws://localhost:3002')
    connection.onopen = -> self.runTests()
    connection.onerror = (error) -> console.error 'web socket errored', error
    connection.onmessage = (message) -> self.runTests()
    connection.onclose = -> self.setupServerTesting() if self.testing

  runTests: ->
    @setStatus('Running Tests')

    }
    @stacks.push result
    return result

  digestSuite: (suite) ->
    return {
    name: suite.$.name
    errors: parseInt(suite.$.errors)
    failures: parseInt(suite.$.failures)
    tests: (@digestTest(test) for test in suite.testcase)
    time: @digestTime(suite.$.time)
    }

  digestTime: (time) -> "#{(parseFloat(time)*1000).toFixed(0)} ms"

  digestTest: (test) ->
    result = {
      name: test.$.name
