Non-resizable windows should only maximizable on Mac

This commit is contained in:
Kevin Sawicki 2016-08-04 17:10:34 -07:00
parent b77a553de7
commit 23203daf95

View file

@ -711,7 +711,10 @@ describe('browser-window module', function () {
w.destroy()
w = new BrowserWindow({show: false, resizable: false})
assert.equal(w.isResizable(), false)
assert.equal(w.isMaximizable(), true)
if (process.platform === 'darwin') {
assert.equal(w.isMaximizable(), true)
}
})
it('can be changed with setResizable method', function () {