mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -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.
14 lines
342 B
CoffeeScript
14 lines
342 B
CoffeeScript
require '../src/window'
|
|
Atom = require '../src/atom'
|
|
atom = new Atom()
|
|
atom.show() unless atom.getLoadSettings().exitWhenDone
|
|
window.atom = atom
|
|
|
|
{runSpecSuite} = require '../spec/jasmine-helper'
|
|
|
|
atom.openDevTools()
|
|
|
|
document.title = "Benchmark Suite"
|
|
benchmarkSuite = require.resolve('./benchmark-suite')
|
|
runSpecSuite(benchmarkSuite, true)
|