mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Rename specPath loadSetting to specDirectory
This commit is contained in:
@@ -44,7 +44,7 @@ measure 'spec suite require time', ->
|
||||
requireSpecs(specPath)
|
||||
setSpecType("user")
|
||||
|
||||
if specPath = atom.getLoadSettings().specPath
|
||||
runSpecs(specPath)
|
||||
if specDirectory = atom.getLoadSettings().specDirectory
|
||||
else
|
||||
runAllSpecs()
|
||||
|
||||
@@ -157,8 +157,8 @@ class AtomApplication
|
||||
ipc.once 'update-application-menu', (processId, routingId, keystrokesByCommand) =>
|
||||
@applicationMenu.update(keystrokesByCommand)
|
||||
|
||||
ipc.on 'run-package-specs', (processId, routingId, packagePath) =>
|
||||
@runSpecs({resourcePath: global.devResourcePath, specPath: packagePath, exitWhenDone: false})
|
||||
ipc.on 'run-package-specs', (processId, routingId, specDirectory) =>
|
||||
@runSpecs({resourcePath: global.devResourcePath, specDirectory: specDirectory, exitWhenDone: false})
|
||||
|
||||
ipc.on 'command', (processId, routingId, command) =>
|
||||
@emit(command)
|
||||
@@ -264,14 +264,14 @@ class AtomApplication
|
||||
# The path to include specs from.
|
||||
# + specPath:
|
||||
# The directory to load specs from.
|
||||
runSpecs: ({exitWhenDone, resourcePath, specPath}) ->
|
||||
runSpecs: ({exitWhenDone, resourcePath, specDirectory}) ->
|
||||
if resourcePath isnt @resourcePath and not fs.existsSync(resourcePath)
|
||||
resourcePath = @resourcePath
|
||||
|
||||
bootstrapScript = 'spec-bootstrap'
|
||||
isSpec = true
|
||||
devMode = true
|
||||
new AtomWindow({bootstrapScript, resourcePath, exitWhenDone, isSpec, devMode, specPath})
|
||||
new AtomWindow({bootstrapScript, resourcePath, exitWhenDone, isSpec, devMode, specDirectory})
|
||||
|
||||
runBenchmarks: ->
|
||||
bootstrapScript = 'benchmark/benchmark-bootstrap'
|
||||
|
||||
Reference in New Issue
Block a user