Non-resizable windows should only maximizable on Mac
This commit is contained in:
parent
b77a553de7
commit
23203daf95
1 changed files with 4 additions and 1 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue