Sha256: 66b781b905b179fb1019bb321d68ce9fd099a566b7a1adadb0184d224676f348
Contents?: true
Size: 688 Bytes
Versions: 2
Compression:
Stored size: 688 Bytes
Contents
class Teabag.Runner @run: false constructor: -> return if @constructor.run @constructor.run = true @fixturePath = Teabag.fixturePath @params = @getParams() @setup() getParams: -> params = {} for param in Teabag.location.search.substring(1).split("&") [name, value] = param.split("=") params[decodeURIComponent(name)] = decodeURIComponent(value) params getReporter: -> if @params["reporter"] Teabag.Reporters[@params["reporter"]] else if window.navigator.userAgent.match(/PhantomJS/) Teabag.Reporters.Console else Teabag.Reporters.HTML setup: -> # left for subclasses to implement
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
teabag-0.4.0 | app/assets/javascripts/teabag/base/runner.coffee |
teabag-0.3.6 | app/assets/javascripts/teabag/base/runner.coffee |