mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Test for restoring windows over directories and files
This commit is contained in:
@@ -159,11 +159,16 @@ describe('AtomApplication', function () {
|
||||
await scenario.assert('[b _] [c _]')
|
||||
})
|
||||
|
||||
it('restores windows when launched with paths to open', async function () {
|
||||
it('restores windows when launched with a project path to open', async function () {
|
||||
await scenario.launch({app, pathsToOpen: ['a']})
|
||||
await scenario.assert('[a _] [b _] [c _]')
|
||||
})
|
||||
|
||||
it('restores windows when launched with a file path to open', async function () {
|
||||
await scenario.launch({app, pathsToOpen: ['a/1.md']})
|
||||
await scenario.assert('[b 1.md] [c _]')
|
||||
})
|
||||
|
||||
it('collapses new paths into restored windows when appropriate', async function () {
|
||||
await scenario.launch({app, pathsToOpen: ['b/2.md']})
|
||||
await scenario.assert('[b 2.md] [c _]')
|
||||
|
||||
Reference in New Issue
Block a user