pulsar/benchmark/benchmark-bootstrap.coffee
2012-03-14 09:59:31 -07:00

25 lines
584 B
CoffeeScript

{$$} = require 'space-pen'
nakedLoad 'jasmine'
nakedLoad 'jasmine-html'
nakedLoad 'jasmine-focused'
$ = require 'jquery'
document.title = "Benchmark Suite"
$('head').append $$ ->
@link rel: "stylesheet", type: "text/css", href: "static/jasmine.css"
$('body').append $$ ->
@div id: 'jasmine_runner'
@div id: 'jasmine-content'
jasmineEnv = jasmine.getEnv()
atomReporter = new jasmine.AtomReporter(document, 'jasmine_runner')
jasmineEnv.addReporter(atomReporter)
jasmineEnv.specFilter = (spec) -> atomReporter.specFilter(spec)
require 'benchmark-suite'
jasmineEnv.execute()