Skip to content

Commit

Permalink
Main process test for dev mode and benchmark windows
Browse files Browse the repository at this point in the history
  • Loading branch information
smashwilson committed Apr 28, 2019
1 parent dffe455 commit e368d78
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec/main-process/atom-application.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,18 @@ describe('AtomApplication', function () {
assert.isNull(w._locations[0].initialLine)
assert.isNull(w._locations[0].initialColumn)
})

it('disregards test and benchmark windows', async function () {
await scenario.launch(parseCommandLine(['--test', 'b']))
await scenario.open(parseCommandLine(['--new-window']))
await scenario.open(parseCommandLine(['--test', 'c']))
await scenario.open(parseCommandLine(['--benchmark', 'b']))

await scenario.open(parseCommandLine(['a/1.md']))

// Test and benchmark StubWindows are visible as empty editor windows here
await scenario.assert('[_ _] [_ 1.md] [_ _] [_ _]')
})
})

if (process.platform === 'darwin' || process.platform === 'win32') {
Expand Down

0 comments on commit e368d78

Please sign in to comment.