Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
tzahola committed Dec 5, 2023
1 parent b39f284 commit 86738a8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/api-browser-window-spec.ts
Expand Up @@ -5611,6 +5611,19 @@ describe('BrowserWindow module', () => {
expect(w2.isFullScreenable()).to.be.false('isFullScreenable');
expect(w3.isFullScreenable()).to.be.false('isFullScreenable');
});

it('does not disable maximize button if window is resizable', () => {
const w = new BrowserWindow({
resizable: true,
fullscreenable: false
});

expect(w.isMaximizable()).to.be.true('isMaximizable');

w.setResizable(false);

expect(w.isMaximizable()).to.be.false('isMaximizable');
});
});

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

0 comments on commit 86738a8

Please sign in to comment.