mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Call removeWindow() explicitly to simulate a window close
This commit is contained in:
@@ -725,13 +725,13 @@ describe('AtomApplication', function () {
|
||||
if (process.platform === 'linux' || process.platform === 'win32') {
|
||||
it('quits the application', async function () {
|
||||
const [w] = await scenario.launch(parseCommandLine(['a']))
|
||||
w.browserWindow.emit('closed')
|
||||
scenario.getApplication(0).removeWindow(w)
|
||||
assert.isTrue(electron.app.quit.called)
|
||||
})
|
||||
} else if (process.platform === 'darwin') {
|
||||
it('leaves the application open', async function () {
|
||||
const [w] = await scenario.launch(parseCommandLine(['a']))
|
||||
w.browserWindow.emit('closed')
|
||||
scenario.getApplication(0).removeWindow(w)
|
||||
assert.isFalse(electron.app.quit.called)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user