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.destroy()
w = new BrowserWindow({show: false, resizable: false}) w = new BrowserWindow({show: false, resizable: false})
assert.equal(w.isResizable(), false) assert.equal(w.isResizable(), false)
if (process.platform === 'darwin') {
assert.equal(w.isMaximizable(), true) assert.equal(w.isMaximizable(), true)
}
}) })
it('can be changed with setResizable method', function () { it('can be changed with setResizable method', function () {