mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
Set initialLoadComplete to true only in test mode
This commit is contained in:
parent
3b4fc84fea
commit
62de930b03
@ -117,7 +117,7 @@ class AtomEnvironment extends Model
|
||||
|
||||
# Call .loadOrCreate instead
|
||||
constructor: (params={}) ->
|
||||
{@blobStore, @applicationDelegate, @window, @document, configDirPath, @enablePersistence} = params
|
||||
{@blobStore, @applicationDelegate, @window, @document, configDirPath, @enablePersistence, loadBaseStylesheetsOnly} = params
|
||||
|
||||
@state = {version: @constructor.version}
|
||||
|
||||
@ -183,7 +183,7 @@ class AtomEnvironment extends Model
|
||||
|
||||
@themes.loadBaseStylesheets()
|
||||
@initialStyleElements = @styles.getSnapshot()
|
||||
@themes.initialLoadComplete = true
|
||||
@themes.initialLoadComplete = true if loadBaseStylesheetsOnly
|
||||
@setBodyPlatformClass()
|
||||
|
||||
@stylesElement = @styles.buildStylesElement()
|
||||
|
@ -70,6 +70,7 @@ module.exports = ({blobStore}) ->
|
||||
buildAtomEnvironment = (params) ->
|
||||
params = cloneObject(params)
|
||||
params.blobStore = blobStore unless params.hasOwnProperty("blobStore")
|
||||
params.loadBaseStylesheetsOnly = true unless params.hasOwnProperty("loadBaseStylesheetsOnly")
|
||||
new AtomEnvironment(params)
|
||||
|
||||
promise = testRunner({
|
||||
|
Loading…
Reference in New Issue
Block a user