Sha256: 058fde7daf432c08de8beea76af206f71c982978e911bb4d6ff8d4a30178ead4

Contents?: true

Size: 655 Bytes

Versions: 2

Compression:

Stored size: 655 Bytes

Contents

#= require_self
#= require teabag/base/runner
#= require teabag/base/reporters/html
#= require teabag/base/reporters/console

class @Teabag
  @defer:     false
  @slow:      75
  @root:      null
  @finished:  false
  @Reporters: {}
  @Date:      Date
  @location:  window.location
  @console:   window.console
  @messages:  []

  @execute: ->
    if @defer
      @defer = false
      return
    new Teabag.Runner()


  # logging methods -- used by selenium / phantomJS to get information back to ruby
  @log: ->
    @messages.push(arguments[0])
    @console.log(arguments...)


  @getMessages: ->
    messages = @messages
    @messages = []
    messages

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
teabag-0.4.2 app/assets/javascripts/teabag/base/teabag.coffee
teabag-0.4.1 app/assets/javascripts/teabag/base/teabag.coffee