diff --git a/spec/api-browser-window-spec.ts b/spec/api-browser-window-spec.ts index 088945d09999..692773ff19d9 100755 --- a/spec/api-browser-window-spec.ts +++ b/spec/api-browser-window-spec.ts @@ -5407,6 +5407,26 @@ describe('BrowserWindow module', () => { expect(w.webContents.isLoadingMainFrame()).to.be.true('isLoadingMainFrame'); }); }); + + ifdescribe(process.platform !== 'win32')('visibleOnAllWorkspaces state', () => { + describe('with properties', () => { + it('can be changed', () => { + const w = new BrowserWindow({ show: false }); + expect(w.visibleOnAllWorkspaces).to.be.false(); + w.visibleOnAllWorkspaces = true; + expect(w.visibleOnAllWorkspaces).to.be.true(); + }); + }); + + describe('with functions', () => { + it('can be changed', () => { + const w = new BrowserWindow({ show: false }); + expect(w.isVisibleOnAllWorkspaces()).to.be.false(); + w.setVisibleOnAllWorkspaces(true); + expect(w.isVisibleOnAllWorkspaces()).to.be.true(); + }); + }); + }); }); ifdescribe(process.platform !== 'linux')('window states (excluding Linux)', () => { @@ -5447,26 +5467,6 @@ describe('BrowserWindow module', () => { }); }); - describe('visibleOnAllWorkspaces state', () => { - it('with properties', () => { - it('can be changed', () => { - const w = new BrowserWindow({ show: false }); - expect(w.visibleOnAllWorkspaces).to.be.false(); - w.visibleOnAllWorkspaces = true; - expect(w.visibleOnAllWorkspaces).to.be.true(); - }); - }); - - it('with functions', () => { - it('can be changed', () => { - const w = new BrowserWindow({ show: false }); - expect(w.isVisibleOnAllWorkspaces()).to.be.false(); - w.setVisibleOnAllWorkspaces(true); - expect(w.isVisibleOnAllWorkspaces()).to.be.true(); - }); - }); - }); - ifdescribe(process.platform === 'darwin')('documentEdited state', () => { it('with properties', () => { it('can be changed', () => {