Skip to content

Commit

Permalink
test: add an extra resize test
Browse files Browse the repository at this point in the history
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
  • Loading branch information
trop[bot] and codebytere committed Aug 24, 2023
1 parent c969dc2 commit d0246f6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions spec/api-browser-window-spec.ts
Expand Up @@ -5465,6 +5465,26 @@ describe('BrowserWindow module', () => {
expect(child.fullScreen).to.be.false('fullscreen');
expect(child.fullScreenable).to.be.false('fullscreenable');
});

it('is set correctly with different resizable values', async () => {
const w1 = new BrowserWindow({
resizable: false,
fullscreenable: false
});

const w2 = new BrowserWindow({
resizable: true,
fullscreenable: false
});

const w3 = new BrowserWindow({
fullscreenable: false
});

expect(w1.isFullScreenable()).to.be.false('isFullScreenable');
expect(w2.isFullScreenable()).to.be.false('isFullScreenable');
expect(w3.isFullScreenable()).to.be.false('isFullScreenable');
});
});

ifdescribe(process.platform === 'darwin')('isHiddenInMissionControl state', () => {
Expand Down

0 comments on commit d0246f6

Please sign in to comment.