From e782cea2bf92a030e203c19ab3320cc9bcd0aa73 Mon Sep 17 00:00:00 2001 From: Ash Wilson Date: Thu, 18 Apr 2019 17:13:03 -0400 Subject: [PATCH] Test for window restoration on launch, not open --- spec/main-process/atom-application.new.test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/main-process/atom-application.new.test.js b/spec/main-process/atom-application.new.test.js index d55d915b8..f2ffe372c 100644 --- a/spec/main-process/atom-application.new.test.js +++ b/spec/main-process/atom-application.new.test.js @@ -130,6 +130,12 @@ describe('AtomApplication', function () { await scenario.launch({app, newWindow: true}) await scenario.assert('[_ _]') }) + + it("doesn't restore windows on open, just launch", async function () { + await scenario.launch({app, pathsToOpen: ['a'], newWindow: true}) + await scenario.open(parseCommandLine(['b'])) + await scenario.assert('[a _] [b _]') + }) }) }) })