mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Added spec for openEmptyEditorOnStart
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
"*":
|
||||
welcome:
|
||||
showOnStartup: false
|
||||
"exception-reporting":
|
||||
userId: "7c0a3c52-795c-5e20-5323-64efcf91f212"
|
||||
openEmptyEditorOnStart: false
|
||||
@@ -196,6 +196,13 @@ describe "Starting Atom", ->
|
||||
, 5000)
|
||||
.waitForExist("atom-workspace")
|
||||
.waitForPaneItemCount(1, 5000)
|
||||
|
||||
it "doesn't open a new window if openEmptyEditorOnStart is disabled", ->
|
||||
fs.writeFileSync(path.join(atomHome, 'config.cson'), fs.readFileSync(path.join(__dirname, 'fixtures', 'atom-home', 'config-openEmptyEditorOnStart.cson')))
|
||||
runAtom [], {ATOM_HOME: atomHome}, (client) ->
|
||||
client
|
||||
.waitForExist("atom-workspace")
|
||||
.waitForPaneItemCount(0, 5000)
|
||||
|
||||
it "reopens any previously opened windows", ->
|
||||
runAtom [tempDirPath], {ATOM_HOME: atomHome}, (client) ->
|
||||
|
||||
Reference in New Issue
Block a user