Sha256: 5309a5da760c0baa04ab825155c86b1741ecddf1ed8c3844e91bda9dbff3a51b

Contents?: true

Size: 726 Bytes

Versions: 6

Compression:

Stored size: 726 Bytes

Contents

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

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

  @execute: ->
    if @defer
      @defer = false
      return
    @started = true
    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

6 entries across 6 versions & 1 rubygems

Version Path
teabag-0.5.3 app/assets/javascripts/teabag/base/teabag.coffee
teabag-0.5.2 app/assets/javascripts/teabag/base/teabag.coffee
teabag-0.5.1 app/assets/javascripts/teabag/base/teabag.coffee
teabag-0.5.0 app/assets/javascripts/teabag/base/teabag.coffee
teabag-0.4.6 app/assets/javascripts/teabag/base/teabag.coffee
teabag-0.4.5 app/assets/javascripts/teabag/base/teabag.coffee