mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
I initially ripped out Atom::getLoadSettings in favor of a mutable property because window spec was making an assumption that such a property existed anyway. Since load settings need to be available from class methods, the instance method just delegates to the class method. But that means there's no ::loadSettings property to mutate in that spec. I replaced the former approach with a spy which has the added advantage of not polluting windowSettings for subsequent specs.
19 lines
535 B
CoffeeScript
19 lines
535 B
CoffeeScript
# Start the crash reporter before anything else.
|
|
require('crash-reporter').start(productName: 'Atom', companyName: 'GitHub')
|
|
|
|
try
|
|
require '../src/window'
|
|
Atom = require '../src/atom'
|
|
window.atom = Atom.loadOrCreate('spec')
|
|
window.atom.show() unless atom.getLoadSettings().exitWhenDone
|
|
{runSpecSuite} = require './jasmine-helper'
|
|
|
|
document.title = "Spec Suite"
|
|
runSpecSuite './spec-suite'
|
|
catch error
|
|
if atom?.getLoadSettings().exitWhenDone
|
|
console.error(error.stack ? error)
|
|
atom.exit(1)
|
|
else
|
|
throw error
|