Files
atom/spec/spec-bootstrap.coffee
Kevin Sawicki 0254e64762 Remove window handling in catch block
The catch block in index.html takes care of this
2013-10-16 13:35:11 -07:00

15 lines
355 B
CoffeeScript

try
require '../src/window'
Atom = require '../src/atom'
window.atom = new Atom()
window.atom.show() unless atom.getLoadSettings().exitWhenDone
{runSpecSuite} = require './jasmine-helper'
document.title = "Spec Suite"
runSpecSuite './spec-suite'
catch error
if atom?.getLoadSettings().exitWhenDone
atom.exit(1)
else
throw error