mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Don’t load base style sheets until config is loaded
We need to know what themes are active in order to load the correct LESS variables.
This commit is contained in:
@@ -20,6 +20,8 @@ jasmineStyle = document.createElement('style')
|
||||
jasmineStyle.textContent = atom.themes.loadStylesheet(atom.themes.resolveStylesheet('../static/jasmine'))
|
||||
document.head.appendChild(jasmineStyle)
|
||||
|
||||
atom.themes.loadBaseStylesheets()
|
||||
initialStyleElements = atom.styles.getSnapshot()
|
||||
atom.themes.initialLoadComplete = true
|
||||
|
||||
fixturePackagesPath = path.resolve(__dirname, './fixtures/packages')
|
||||
@@ -123,7 +125,7 @@ afterEach ->
|
||||
# unless jasmine.getEnv().currentSpec.results().passed()
|
||||
# jasmine.getEnv().specFilter = -> false
|
||||
#
|
||||
atom.reset()
|
||||
atom.reset(stylesSnapshot: initialStyleElements)
|
||||
|
||||
document.getElementById('jasmine-content').innerHTML = '' unless window.debugContent
|
||||
|
||||
|
||||
Reference in New Issue
Block a user